Skip to content

Commit 699b80f

Browse files
tsonglewwu-sheng
andcommitted
Update Configuration.md
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
1 parent bf996d2 commit 699b80f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

skywalking/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
RE_IGNORE_PATH: Pattern = re.compile('^$')
3939
RE_HTTP_IGNORE_METHOD: Pattern = RE_IGNORE_PATH
40-
RE_GRPC_IGNORE_METHOD: Pattern = RE_IGNORE_PATH
40+
RE_GRPC_IGNORED_METHODS: Pattern = RE_IGNORE_PATH
4141

4242
options = None # here to include 'options' in globals
4343
options = globals().copy()
@@ -301,18 +301,18 @@ def finalize_regex() -> None:
301301
) for p0 in agent_trace_ignore_path.split(',')
302302
) + ')$'
303303

304-
global RE_IGNORE_PATH, RE_HTTP_IGNORE_METHOD, RE_GRPC_IGNORE_METHOD
304+
global RE_IGNORE_PATH, RE_HTTP_IGNORE_METHOD, RE_GRPC_IGNORED_METHODS
305305
RE_IGNORE_PATH = re.compile(f'{suffix}|{path}')
306306
RE_HTTP_IGNORE_METHOD = re.compile(method, re.IGNORECASE)
307-
RE_GRPC_IGNORE_METHOD = re.compile(grpc_method, re.IGNORECASE)
307+
RE_GRPC_IGNORED_METHODS = re.compile(grpc_method, re.IGNORECASE)
308308

309309

310310
def ignore_http_method_check(method: str):
311311
return RE_HTTP_IGNORE_METHOD.match(method)
312312

313313

314314
def ignore_grpc_method_check(method: str):
315-
return RE_GRPC_IGNORE_METHOD.match(method)
315+
return RE_GRPC_IGNORED_METHODS.match(method)
316316

317317

318318
def finalize() -> None:

0 commit comments

Comments
 (0)