File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3737
3838RE_IGNORE_PATH : Pattern = re .compile ('^$' )
3939RE_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
4242options = None # here to include 'options' in globals
4343options = 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
310310def ignore_http_method_check (method : str ):
311311 return RE_HTTP_IGNORE_METHOD .match (method )
312312
313313
314314def ignore_grpc_method_check (method : str ):
315- return RE_GRPC_IGNORE_METHOD .match (method )
315+ return RE_GRPC_IGNORED_METHODS .match (method )
316316
317317
318318def finalize () -> None :
You can’t perform that action at this time.
0 commit comments