
    lh                     r    d dl 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	e      Zy)
    N)
ContextVar)Integrationadd_global_event_processor)TYPE_CHECKING)Optional)EventHintc                   6    e Zd ZdZd Zed        Zed        Zy)DedupeIntegrationdedupec                 $    t        d      | _        y )Nz	last-seen)r   
_last_seen)selfs    p/var/www/pru.catia.catastroantioquia-mas.com/tasa/lib/python3.12/site-packages/sentry_sdk/integrations/dedupe.py__init__zDedupeIntegration.__init__   s    $[1    c                      t         d        } y )Nc                    || S t        j                         j                  t              }|| S |j	                  dd       }|| S |d   }|j
                  j	                  d       |u ry |j
                  j                  |       | S )Nexc_info   )
sentry_sdk
get_clientget_integrationr   getr   set)eventhintintegrationr   excs        r   	processorz/DedupeIntegration.setup_once.<locals>.processor   s     |$//1AABSTK"xx
D1H1+C%%))$/36""&&s+Lr   r   )r!   s    r   
setup_oncezDedupeIntegration.setup_once   s     
$	 
$	r   c                      t        j                         j                  t              } | y | j                  j                  d        y )N)r   r   r   r   r   r   )r   s    r   reset_last_seenz!DedupeIntegration.reset_last_seen,   s;     !++-==>OP""4(r   N)__name__
__module____qualname__
identifierr   staticmethodr"   r$    r   r   r   r      s4    J2  , ) )r   r   )r   sentry_sdk.utilsr   sentry_sdk.integrationsr   sentry_sdk.scoper   typingr   r   sentry_sdk._typesr	   r
   r   r*   r   r   <module>r0      s)     ' / 7  -%) %)r   