관리-도구
편집 파일: dedupe.cpython-38.pyc
U �Mg� � @ sl d dl Z d dlmZ d dlmZ d dlmZ d dlmZ erXd dlm Z d dl mZmZ G dd � d e�Z dS ) � N)� ContextVar)�Integration��add_global_event_processor)� TYPE_CHECKING)�Optional)�Event�Hintc @ s$ e Zd ZdZdd� Zedd� �ZdS )�DedupeIntegrationZdedupec C s t d�| _d S )Nz last-seen)r � _last_seen)�self� r �L/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/dedupe.py�__init__ s zDedupeIntegration.__init__c C s t dd� �} d S )Nc S sj |d kr| S t �� �t�}|d kr&| S |�dd �}|d kr>| S |d }|j�d �|krZd S |j�|� | S )N�exc_info� )� sentry_sdkZ get_clientZget_integrationr �getr �set)�event�hintZintegrationr �excr r r � processor s z/DedupeIntegration.setup_once.<locals>.processorr )r r r r � setup_once s zDedupeIntegration.setup_onceN)�__name__� __module__�__qualname__� identifierr �staticmethodr r r r r r s r )r Zsentry_sdk.utilsr Zsentry_sdk.integrationsr Zsentry_sdk.scoper �typingr r Zsentry_sdk._typesr r r r r r r �<module> s