o
    ƒŠhŽ  ã                   @   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   úb/var/www/html/aiguide_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    