Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib64
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
[ HOME ]
Exec
Submit
File Name : dedupe.cpython-312.pyc
� w�/i� � �~ � d dl Z d dlZd dlmZmZ d dlmZ d dlmZ d dl m Z e rd dl mZ d dlm Z mZ G d� d e� Zy) � N)� ContextVar�logger)�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 |j j d � }|�#t |t j � r |� n|}|d }||u rt j d|� y |j j t j |� � | S # t $ r |j j |� Y | S w xY w)N�exc_info� z3DedupeIntegration dropped duplicated error event %s) � sentry_sdk� get_client�get_integrationr �getr � isinstance�weakref�refr �info�set� TypeError)�event�hint�integrationr � last_seen�excs r � processorz/DedupeIntegration.setup_once.<locals>.processor s� � � �|���$�/�/�1�A�A�BS�T�K��"����x�x� �D�1�H�����#�.�.�2�2�4�8�I��$� $.�i����#E�I�K�9� � �1�+�C��C�����Q�SV�W�� 0��&�&�*�*�7�;�;�s�+;�<� �L�� � 0��&�&�*�*�3�/��L� 0�s �'.C �$C?�>C?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<