OwlCyberSecurity - MANAGER
Edit File: dedupe.cpython-312.pyc
� G��g� � �r � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ erd dlm Z d dl mZmZ G d� d e� Z y) � N)� ContextVar)�Integration��add_global_event_processor)� TYPE_CHECKING)�Optional)�Event�Hintc �6 � e Zd ZdZd� Zed� � Zed� � Zy)�DedupeIntegration�dedupec �$ � t d� | _ y )Nz last-seen)r � _last_seen)�selfs �M/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/dedupe.py�__init__zDedupeIntegration.__init__ s � �$�[�1��� c � � t d� � } y )Nc � � |�| S t j � j t � }|�| S |j dd � }|�| S |d }|j j d � |u ry |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�A�BS�T�K��"����x�x� �D�1�H������1�+�C��%�%�)�)�$�/�3�6���"�"�&�&�s�+��Lr r )r! s r � setup_oncezDedupeIntegration.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"