Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 509a181

Browse files
authored
fix(aiohttp.py): fix missing endpoint ignore check (#319)
1 parent 388053a commit 509a181

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

epsagon/wrappers/aiohttp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
collect_container_metadata,
1717
get_traceback_data_from_exception
1818
)
19-
from ..http_filters import ignore_request
19+
from ..http_filters import ignore_request, is_ignored_endpoint
2020
from ..utils import print_debug
2121

2222

@@ -31,7 +31,10 @@ async def AiohttpMiddleware(request, handler):
3131
print_debug('[aiohttp] started middleware')
3232
epsagon.trace.trace_factory.switch_to_async_tracer()
3333

34-
if ignore_request('', request.path.lower()):
34+
if (
35+
ignore_request('', request.path.lower()) or
36+
is_ignored_endpoint(request.path.lower())
37+
):
3538
print_debug('[aiohttp] ignoring request')
3639
return await handler(request)
3740

0 commit comments

Comments
 (0)