o
    Ù°“i  ã                   @   sh   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ er*d dlm	Z	 d dl
mZ G dd	„ d	eƒZdS )
é    N)ÚIntegration©Úadd_global_event_processor)Ú_get_installed_modules)ÚTYPE_CHECKING)ÚAny)ÚEventc                   @   s   e Zd ZdZeddd„ƒZdS )ÚModulesIntegrationÚmodulesÚreturnNc                  C   s   t ddd„ƒ} d S )	NÚeventr   Úhintr   r   c                 S   s6   |   d¡dkr	| S t ¡  t¡d u r| S tƒ | d< | S )NÚtypeÚtransactionr
   )ÚgetÚ
sentry_sdkÚ
get_clientÚget_integrationr	   r   )r   r   © r   úS/home/ubuntu/.local/lib/python3.10/site-packages/sentry_sdk/integrations/modules.pyÚ	processor   s   
z0ModulesIntegration.setup_once.<locals>.processor)r   r   r   r   r   r   r   )r   r   r   r   Ú
setup_once   s   zModulesIntegration.setup_once)r   N)Ú__name__Ú
__module__Ú__qualname__Ú
identifierÚstaticmethodr   r   r   r   r   r	      s    r	   )r   Úsentry_sdk.integrationsr   Úsentry_sdk.scoper   Úsentry_sdk.utilsr   Útypingr   r   Úsentry_sdk._typesr   r	   r   r   r   r   Ú<module>   s    