관리-도구
편집 파일: aws_lambda.cpython-311.pyc
� �܋f�= � �v � d dl Z d dlmZ d dlmZmZ d dlmZ d dlmZ d dl m Z d dlmZm Z d dlmZ d d lmZmZmZmZmZ d d lmZ d dlmZ d dlmZ d d lmZ er7d dlmZ d dlm Z d dlm!Z! d dlm"Z" d dlm#Z#m$Z$m%Z% e de!def �� � Z&dZ'dZ(d� Z)d� Z*d� Z+ G d� de� � Z,d� Z-d� Z.d� Z/d � Z0dS )!� N)�deepcopy)�datetime� timedelta)�environ)�continue_trace)�OP)�Hub�_should_send_default_pii)�TRANSACTION_SOURCE_COMPONENT)�AnnotatedValue�capture_internal_exceptions�event_from_exception�logger� TimeoutThread)�Integration)�_filter_headers)�reraise)� TYPE_CHECKING)�Any)�TypeVar)�Callable)�Optional)�EventProcessor�Event�Hint�F.)�boundi� g @�@c � � � � fd�}|S )Nc � �� t j }|� t � � }|� � | i |��S |j }t � � 5 |� � � 5 }|� � � d d d � � n# 1 swxY w Y t j � � }|rCt |� � r4t ||j ddd��� � \ }}|� ||�� � d d d � � n# 1 swxY w Y � | i |��S )N� aws_lambdaF��type�handled��client_options� mechanism��hint)r �current�get_integration�AwsLambdaIntegration�clientr �configure_scope�clear_breadcrumbs�sys�exc_info�allr �options� capture_event) �args�kwargs�hub�integrationr, �scoper0 �sentry_eventr( � init_errors ��s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/aws_lambda.py�sentry_init_errorz+_wrap_init_error.<locals>.sentry_init_error'