관리-도구
편집 파일: aws_lambda.cpython-38.opt-1.pyc
U ��\f � @ s� d dl Z d dlmZmZ d dlmZ d dlmZmZm Z m Z d dlmZ d dl mZ dd� Zd d � ZG dd� de�Zd d� Zdd� ZdS )� N)�Hub�_should_send_default_pii)�reraise)�AnnotatedValue�capture_internal_exceptions�event_from_exception�logger)�Integration)�_filter_headersc s � fdd�}|S )Nc s� t j}|�t�}|d kr*� | |f|�|�S |�� ��}t� �& |�� |j|_|� t | |�� W 5 Q R X z � | |f|�|�W W 5 Q R � S tk r� t� � }t||jjddd�d�\} }|j| |d� t|� Y nX W 5 Q R X d S )N� aws_lambdaF)�typeZhandled)Zclient_optionsZ mechanism)�hint)r �current�get_integration�AwsLambdaIntegrationZ push_scoper Zclear_breadcrumbs� function_nameZtransactionZadd_event_processor�_make_request_event_processor� Exception�sys�exc_infor �client�optionsZ capture_eventr ) �event�context�args�kwargs�hub�integrationZscoper r ��handler� �S/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/integrations/aws_lambda.py�sentry_handler s( � z%_wrap_handler.<locals>.sentry_handlerr )r r"