OwlCyberSecurity - MANAGER
Edit File: beam.cpython-312.pyc
� d��g> � �( � d dl Z d dlZd dlmZ d dlZd dlmZ d dlmZ d dl m Z mZmZm Z d dlmZ er5d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ ed� Z ed edef �� ZdZdZdZ G d� de� Zd� Zd� Z ee� d� � Zd� Zd� Z y)� N)�wraps)�Integration)� ignore_logger)�capture_internal_exceptions�ensure_integration_enabled�event_from_exception�reraise)� TYPE_CHECKING)�Any)�Iterator)�TypeVar)�Callable)�ExcInfo�T�F.)�boundz_wrapped_{}_z_inspect_{}� _sentry_used_c � � e Zd ZdZed� � Zy)�BeamIntegration�beamc �� ��� ddl m} m} t d� t d� g d���D ], }t | t j |� t | |� � �. |j ���fd�}||_ y )Nr )�DoFn�ParDo�rootzbundle_processor.create)�process�start_bundle� finish_bundle�setupc �~ �� t | dd� s��D ]� }t ||� s�t j |� }t ||� }t |t j |� � }t |t d� r�bt |t d� r�tt |||� t ||t |� � �� d| _ � | |g|��i |�� y )N�_sentry_is_patchedFT) �getattr�hasattr�WRAPPED_FUNC�format�INSPECT_FUNC� USED_FUNC�setattr�_wrap_task_callr ) �self�fn�args�kwargs� func_name�wrapped_func�process_func�inspect_func�function_patches�old_inits ���K/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/beam.py�sentry_init_pardoz5BeamIntegration.setup_once.<locals>.sentry_init_pardo7 s� �� � �4�!5�u�=�!1�I�"�2�y�1� �#/�#6�#6�y�#A�L� $+�2�y�#9�L�#*�2�|�/B�/B�9�/M�#N�L�"�<��E�B�7�$�i��L� ��L�,�?���I��|�/L�M� "2�"