관리-도구
편집 파일: aws_lambda.cpython-37.pyc
B T a�; � @ s< d dl m Z mZ d dlmZ d dlZd dlmZmZ d dlm Z d dl mZ d dlm Z mZmZmZmZ d dlmZ d d lmZ d d lmZ er�d dlmZ d dlmZ d d lmZ d dlmZ d dlmZmZmZ ededef d�Z dZ!dZ"dd� Z#dd� Z$dd� Z%G dd� de�Z&dd� Z'dd � Z(d!d"� Z)d#d$� Z*dS )%� )�datetime� timedelta)�environN)�Hub�_should_send_default_pii)�Transaction)�reraise)�AnnotatedValue�capture_internal_exceptions�event_from_exception�logger� TimeoutThread)�Integration)�_filter_headers)�MYPY)�Any)�TypeVar)�Callable)�Optional)�EventProcessor�Event�Hint�F.)�boundi� g @�@c s � fdd�}|S )Nc s� t j}|�t�}|d kr"� | |�S |j}t� �^ |�� �}|�� W d Q R X t� � }|r�t |�r�t||jddd�d�\}}|j ||d� W d Q R X � | |�S )N� aws_lambdaF)�type�handled)�client_options� mechanism)�hint)r �current�get_integration�AwsLambdaIntegration�clientr Zconfigure_scope�clear_breadcrumbs�sys�exc_info�allr �options� capture_event) �args�kwargs�hub�integrationr# �scoper&