Skip to content

Commit

Permalink
Update Configuration.md
Browse files Browse the repository at this point in the history
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
  • Loading branch information
tsonglew and wu-sheng committed Nov 18, 2024
1 parent bf996d2 commit 699b80f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions skywalking/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

RE_IGNORE_PATH: Pattern = re.compile('^$')
RE_HTTP_IGNORE_METHOD: Pattern = RE_IGNORE_PATH
RE_GRPC_IGNORE_METHOD: Pattern = RE_IGNORE_PATH
RE_GRPC_IGNORED_METHODS: Pattern = RE_IGNORE_PATH

options = None # here to include 'options' in globals
options = globals().copy()
Expand Down Expand Up @@ -301,18 +301,18 @@ def finalize_regex() -> None:
) for p0 in agent_trace_ignore_path.split(',')
) + ')$'

global RE_IGNORE_PATH, RE_HTTP_IGNORE_METHOD, RE_GRPC_IGNORE_METHOD
global RE_IGNORE_PATH, RE_HTTP_IGNORE_METHOD, RE_GRPC_IGNORED_METHODS
RE_IGNORE_PATH = re.compile(f'{suffix}|{path}')
RE_HTTP_IGNORE_METHOD = re.compile(method, re.IGNORECASE)
RE_GRPC_IGNORE_METHOD = re.compile(grpc_method, re.IGNORECASE)
RE_GRPC_IGNORED_METHODS = re.compile(grpc_method, re.IGNORECASE)


def ignore_http_method_check(method: str):
return RE_HTTP_IGNORE_METHOD.match(method)


def ignore_grpc_method_check(method: str):
return RE_GRPC_IGNORE_METHOD.match(method)
return RE_GRPC_IGNORED_METHODS.match(method)


def finalize() -> None:
Expand Down

0 comments on commit 699b80f

Please sign in to comment.