관리-도구
편집 파일: serverless.cpython-311.pyc
� �܋f� � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z e r:d dlmZ d dlm Z d d lmZ d d lmZ d dlmZ d dlmZ ed e def �� � Znd� Zedd�� � Zedd�� � Zdd�Zd� Zd� ZdS )� N)�Hub)�event_from_exception)�reraise��wraps)� TYPE_CHECKING)�Any)�Callable)�TypeVar)�Union)�Optional)�overload�F.)�boundc � � | S �N� )�xs �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/serverless.pyr r s � ��� Tc � � d S r r ��f�flushs r �serverless_functionr � � � �Dr c � � d S r r r s r r r # r r c �, �� �fd�}| �|S || � � S )Nc �@ �� � t � � � � �fd�� � }|S )Nc �� �� t t j � � 5 }|� � � 5 }|� � � d d d � � n# 1 swxY w Y �| i |���rt � � cd d d � � S # t $ r t � � Y nw xY w �rt � � n# �rt � � w w xY wd d d � � d S # 1 swxY w Y d S r )r �current�configure_scope�clear_breadcrumbs� _flush_client� Exception�_capture_and_reraise)�args�kwargs�hub�scoper r s ��r �innerz3serverless_function.<locals>.wrapper.<locals>.inner- s� �� � �S�[�!�!� (�S��(�(�*�*� .�e��+�+�-�-�-�.� .� .� .� .� .� .� .� .� .� .���� .� .� .� .�(��1�d�-�f�-�-� � (�%���� (� (� (� (� (� (� (� (�� !� +� +� +�(�*�*�*�*�*�+����*�� (�%������ � (�%�����(���� (� (� (� (� (� (� (� (� (� (� (� (���� (� (� (� (� (� (sj �C�A�C�A �C�A �C�B�$C�B�B1�B�B1� C�1C�C�C�Cr )r r+ r s ` �r �wrapperz$serverless_function.<locals>.wrapper+ s9 ��� � �q��� (� (� (� (� (� �� (� �r r )r r r, s ` r r r ) s6 �� �� � � � �&