관리-도구
편집 파일: boto3.cpython-311.pyc
� �܋f� � �4 � d dl mZ d dlmZ d dlmZmZ d dlmZm Z d dl mZ d dlm Z d dlmZ d dlmZmZmZ erd d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ d dl m!Z! n# e"$ r e d� � �w xY w G d� de� � Z#d� Z$d� Z%d� Z&dS )� )�absolute_import)�Hub)�OP�SPANDATA)�Integration�DidNotEnable)�Span)�partial)� TYPE_CHECKING)�capture_internal_exceptions� parse_url� parse_version)�Any)�Dict)�Optional)�Type)�__version__)� BaseClient)� StreamingBody)� AWSRequestzbotocore is not installedc �( � e Zd ZdZed� � � ZdS )�Boto3Integration�boto3c �� �� t t � � } | �'t d� t � � � � �| dk rt d� � �t j ��fd�}|t _ d S )NzUnparsable botocore version: {})� � z#Botocore 1.12 or newer is required.c �H �� �| g|�R i |�� | j }|j j � � � }|j � dt t |�� � � � |j � dt � � |j � dt � � d S )Nzrequest-created)� service_idz after-callzafter-call-error) �meta� service_modelr � hyphenize�events�registerr �_sentry_request_created�_sentry_after_call�_sentry_after_call_error)�self�args�kwargsr r � orig_inits ��T/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/integrations/boto3.py�sentry_patched_initz8Boto3Integration.setup_once.<locals>.sentry_patched_init. s� �� ��I�d�,�T�,�,�,�V�,�,�,��9�D��+�6�@�@�B�B�J��K� � �!��/�J�G�G�G� � � � �K� � ��/A�B�B�B��K� � �!3�5M�N�N�N�N�N� )r �BOTOCORE_VERSIONr �formatr �__init__)�versionr, r* s @r+ � setup_oncezBoto3Integration.setup_once s� �� � � 0�1�1���?��1�8�8�9I�J�J�� � � �W����D�E�E�E��'� � O� O� O� O� O� 2� ���r- N)�__name__� __module__�__qualname__� identifier�staticmethodr2 � r- r+ r r s2 � � � � � ��J��2� 2� �\�2� 2� 2r- r c �� � t j }|� t � � �d S d| �d|��}|� |t j |�� � }t � � 5 t |j d�� � }|� d|j � � |� t j |j � � |� t j |j � � d d d � � n# 1 swxY w Y |� d| � � |� d|� � |� t j |j � � |� � � ||j d <