o
    ii                     @   s   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	 d dl
mZ er8d dlmZ d dlmZ d d	l
mZ G d
d deZdS )    )absolute_import)Hub)Integrationadd_global_event_processor)_get_installed_modules)TYPE_CHECKING)Any)Dict)Eventc                   @   s   e Zd ZdZedd ZdS )ModulesIntegrationmodulesc                  C   s   t dd } d S )Nc                 S   s4   |  ddkr	| S tjtd u r| S t | d< | S )Ntypetransactionr   )getr   currentget_integrationr   r   )eventhint r   ^/var/www/html/pca-backend/venv/lib/python3.10/site-packages/sentry_sdk/integrations/modules.py	processor   s   
z0ModulesIntegration.setup_once.<locals>.processorr   )r   r   r   r   
setup_once   s   zModulesIntegration.setup_onceN)__name__
__module____qualname__
identifierstaticmethodr   r   r   r   r   r      s    r   N)
__future__r   sentry_sdk.hubr   sentry_sdk.integrationsr   sentry_sdk.scoper   sentry_sdk.utilsr   sentry_sdk._typesr   typingr	   r
   r   r   r   r   r   r   <module>   s    