o
    ªZhh  ã                   @   sx   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r2d 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)Ú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ÚtypeZtransactionr   )Úgetr   ÚcurrentZget_integrationr   r   )ÚeventÚhint© r   úV/var/www/html/lang_env/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   Zsentry_sdk.hubr   Zsentry_sdk.integrationsr   Zsentry_sdk.scoper   Zsentry_sdk.utilsr   Zsentry_sdk._typesr   Útypingr	   r
   r   r   r   r   r   Ú<module>   s    