관리-도구
편집 파일: beam.cpython-311.pyc
� R�Dg � �X � d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZmZ d dl mZ d dlmZ d d lmZ erJd d lmZ d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ d dlmZ ed� � Z ededef �� � ZdZdZdZ G d� de� � Z!d� Z"d� Z#d� Z$d� Z%d� Z&dS )� )�absolute_importN)�wraps)�Hub)�reraise)�capture_internal_exceptions�event_from_exception)�Integration)� ignore_logger)�MYPY)�Any)�Iterator)�TypeVar)�Optional)�Callable)�Client)�ExcInfo�T�F.)�boundz_wrapped_{}_z_inspect_{}� _sentry_used_c �( � e Zd ZdZed� � � ZdS )�BeamIntegration�beamc � ��� ddl m} m} t d� � t d� � g d���D ]9}t | t � |� � t | |� � � � �:|j ���fd�}||_ d S )Nr )�DoFn�ParDo�rootzbundle_processor.create)�process�start_bundle� finish_bundle�setupc �� �� t | dd� � sʉD ]�}t ||� � s�t � |� � }t ||� � }t |t � |� � � � }t |t d� � sEt |t d� � s/t |||� � t ||t |� � � � ��d| _ � | |g|�R i |�� d S )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 ���|/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations/beam.py�sentry_init_pardoz5BeamIntegration.setup_once.<locals>.sentry_init_pardo6 s �� � �4�!5�u�=�=� /�!1� N� N�I�"�2�y�1�1� !� �#/�#6�#6�y�#A�#A�L� $+�2�y�#9�#9�L�#*�2�|�/B�/B�9�/M�/M�#N�#N�L�"�<��E�B�B� N�7�$�i��L� L� N� ��L�,�?�?�?���I��|�/L�/L�M�M�M��*.��'��H�T�2�/��/�/�/��/�/�/�/�/� ) �apache_beam.transforms.corer r r r* r( r'