U „á§\=ã@sDddlmZddlmZddlmZddlmZGdd„deƒZ dS)é)ÚHub)Ú ContextVar)Ú Integration©Úadd_global_event_processorc@s$eZdZdZdd„Zedd„ƒZdS)ÚDedupeIntegrationZdedupecCstdƒ|_dS)Nz last-seen)rÚ _last_seen)Úself©r ú /dedupe.pyÚ__init__szDedupeIntegration.__init__cCstdd„ƒ}dS)NcSsTtj t¡}|dk rP| dd¡}|dk rP|d}|j d¡|krDdS|j |¡|S)NÚexc_infoé)rZcurrentZget_integrationrÚgetrÚset)ZeventZhintZ integrationr Úexcr r r Ú processors   z/DedupeIntegration.setup_once..processorr)rr r r Ú setup_onceszDedupeIntegration.setup_onceN)Ú__name__Ú __module__Ú __qualname__Z identifierr Ú staticmethodrr r r r r srN) Zsentry_sdk.hubrZsentry_sdk.utilsrZsentry_sdk.integrationsrZsentry_sdk.scoperZAnyZDictZOptionalrr r r r Ús