관리-도구
편집 파일: chalice.cpython-311.pyc
� �܋f� � �r � d dl Z d dlmZ d dlmZ d dlmZmZ d dlm Z d dl mZ d dlm Z mZmZ d dlmZ d d lmZ d dlZd d lmZmZ d dlmZ er-d dlmZ d d lmZ d dlmZ d dlmZ ededef �� � Z d dlm Z! n# e"$ r ed� � �w xY w G d� de� � Zd� Z# G d� de� � Z$dS )� N)�reraise)�Hub)�Integration�DidNotEnable)�_make_request_event_processor)�TRANSACTION_SOURCE_COMPONENT)�capture_internal_exceptions�event_from_exception� parse_version)� TYPE_CHECKING��wraps)�Chalice�ChaliceViewError)�EventSourceHandler)�Any)�Dict)�TypeVar)�Callable�F.)�bound)�__version__zChalice is not installedc � � e Zd Zd� ZdS )r c �r � t j }|j }|� � � 5 }t � � 5 |� � � }|� t |||� � � � d d d � � n# 1 swxY w Y t j | ||� � cd d d � � S # t $ rg t j � � }t ||j ddd��� � \ }}|� ||�� � |� � � t# |� Y nw xY w d d d � � d S # 1 swxY w Y d S )N�chaliceF��type�handled��client_options� mechanism��hint)r �current�client� push_scoper �get_remaining_time_in_millis�add_event_processorr �ChaliceEventSourceHandler�__call__� Exception�sys�exc_infor �options� capture_event�flushr ) �self�event�context�hubr% �scope�configured_timer- r# s �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/chalice.pyr* zEventSourceHandler.__call__# s� � ��k����� �^�^� � � #��,�.�.� � �")�"F�"F�"H�"H���)�)�1�%��/�R�R�� � � � � � � � � � � � � ���� � � � � #�0�9�$��w�O�O� #� #� #� #� #� #� #� #�� � #� #� #��<�>�>��2��#)�>�'0�U�C�C�� � ���t� �!�!�%�d�!�3�3�3�� � ������"�"�"�"� #���� #�# #� #� #� #� #� #� #� #� #� #� #� #���� #� #� #� #� #� #sS �D,�9A<�0D,�<B � D,�B �D,�B*�*A.D�D,�D�D,�,D0�3D0N)�__name__� __module__�__qualname__r* � � r7 r r "