/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations
NameSizeModeActions
django/-0755rm
spark/-0755rm
__pycache__/-0755rm
aiohttp.py79600644editdlrm
argv.py9450644editdlrm
asgi.py83680644editdlrm
atexit.py18370644editdlrm
aws_lambda.py129410644editdlrm
beam.py56620644editdlrm
boto3.py37270644editdlrm
bottle.py61870644editdlrm
celery.py91190644editdlrm
chalice.py45730644editdlrm
dedupe.py11660644editdlrm
excepthook.py21900644editdlrm
executing.py20230644editdlrm
falcon.py67960644editdlrm
flask.py74280644editdlrm
gcp.py73820644editdlrm
gnu_backtrace.py29120644editdlrm
logging.py75730644editdlrm
modules.py13930644editdlrm
pure_eval.py45200644editdlrm
pyramid.py70720644editdlrm
redis.py30750644editdlrm
rq.py47910644editdlrm
sanic.py77090644editdlrm
serverless.py19710644editdlrm
sqlalchemy.py29390644editdlrm
stdlib.py73480644editdlrm
threading.py28560644editdlrm
tornado.py70010644editdlrm
trytond.py17280644editdlrm
wsgi.py103740644editdlrm
_wsgi_common.py47630644editdlrm
__init__.py65090644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations/dedupe.py (1166B)
from sentry_sdk.hub import Hub from sentry_sdk.utils import ContextVar from sentry_sdk.integrations import Integration from sentry_sdk.scope import add_global_event_processor from sentry_sdk._types import MYPY if MYPY: from typing import Optional from sentry_sdk._types import Event, Hint class DedupeIntegration(Integration): identifier = "dedupe" def __init__(self): # type: () -> None self._last_seen = ContextVar("last-seen") @staticmethod def setup_once(): # type: () -> None @add_global_event_processor def processor(event, hint): # type: (Event, Optional[Hint]) -> Optional[Event] if hint is None: return event integration = Hub.current.get_integration(DedupeIntegration) if integration is None: return event exc_info = hint.get("exc_info", None) if exc_info is None: return event exc = exc_info[1] if integration._last_seen.get(None) is exc: return None integration._last_seen.set(exc) return event