We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f63d40c commit 78368b3Copy full SHA for 78368b3
sentry_sdk/integrations/asgi.py
@@ -7,7 +7,7 @@
7
import asyncio
8
import inspect
9
from copy import deepcopy
10
-from functools import partial
+from functools import lru_cache, partial
11
12
import sentry_sdk
13
from sentry_sdk.api import continue_trace
@@ -67,6 +67,7 @@ def _capture_exception(exc, mechanism_type="asgi"):
67
sentry_sdk.capture_event(event, hint=hint)
68
69
70
+@lru_cache(maxsize=5)
71
def _looks_like_asgi3(app):
72
# type: (Any) -> bool
73
"""
0 commit comments