o
    ii                     @   sp   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 e	r.d dl
mZ d dlmZmZ G dd	 d	eZd
S )    )Hub)
ContextVar)Integrationadd_global_event_processor)TYPE_CHECKING)Optional)EventHintc                   @   s$   e Zd ZdZdd Zedd ZdS )DedupeIntegrationdedupec                 C   s   t d| _d S )Nz	last-seen)r   
_last_seen)self r   ]/var/www/html/pca-backend/venv/lib/python3.10/site-packages/sentry_sdk/integrations/dedupe.py__init__   s   zDedupeIntegration.__init__c                  C   s   t dd } d S )Nc                 S   sh   |d u r| S t jt}|d u r| S |dd }|d u r| S |d }|jd |u r,d S |j| | S )Nexc_info   )r   currentget_integrationr   getr   set)eventhintintegrationr   excr   r   r   	processor   s   z/DedupeIntegration.setup_once.<locals>.processorr   )r   r   r   r   
setup_once   s   zDedupeIntegration.setup_onceN)__name__
__module____qualname__
identifierr   staticmethodr   r   r   r   r   r      s
    r   N)sentry_sdk.hubr   sentry_sdk.utilsr   sentry_sdk.integrationsr   sentry_sdk.scoper   sentry_sdk._typesr   typingr   r	   r
   r   r   r   r   r   <module>   s    