관리-도구
편집 파일: aiohttp.cpython-38.pyc
U �Mg�2 � @ s d dl Z d dlZd dlmZ d dlZd dlmZ d dlmZm Z m Z d dlmZm Z mZ d dlmZ d dlmZ d dlmZmZ d d lmZmZmZ d d lmZ d dlmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z( z<d dl)Z)d dl*m+Z, d d l*m-Z-m.Z. d dl/m0Z0m1Z1m2Z2 W n e3k �r2 ed��Y nX d dl4m5Z5 e5�r�d dl6m7Z7 d dl8m9Z9 d dl*m:Z:m;Z; d dl<m=Z= d dl>m?Z? d dl4m@Z@ d dl4mAZA d dl4mBZB d dl4mCZC d dlmDZD d dlEmFZFmGZG dZHG dd� de �ZIdd � ZJd!d"� ZKd#d$� ZLd%ZMd&d'� ZNdS )(� N)�wraps)�continue_trace)�OP� SPANSTATUS�SPANDATA)�$_DEFAULT_FAILED_REQUEST_STATUS_CODES�Integration�DidNotEnable)� ignore_logger)� track_session)�_filter_headers�request_body_within_bounds)�BAGGAGE_HEADER_NAME�SOURCE_FOR_STYLE�TRANSACTION_SOURCE_ROUTE)�should_propagate_trace)�capture_internal_exceptions�ensure_integration_enabled�event_from_exception�logger� parse_url� parse_version�reraise�transaction_from_function�HAS_REAL_CONTEXTVARS�CONTEXTVARS_ERROR_MESSAGE�SENSITIVE_DATA_SUBSTITUTE�AnnotatedValue)�__version__)� ClientSession�TraceConfig)�Application� HTTPException� UrlDispatcherzAIOHTTP not installed)� TYPE_CHECKING)�Request)�UrlMappingMatchInfo)�TraceRequestStartParams�TraceRequestEndParams)�Set)�SimpleNamespace)�Any)�Optional)�Tuple)�Union)�ExcInfo)�Event�EventProcessor)�handler_name�method_and_path_patternc @ s6 e Zd ZdZde� �Zd ed�dd�Zedd� �Zd S )�AioHttpIntegration�aiohttpz auto.http.r2 )�failed_request_status_codesc C s( |t krtd|t f ��|| _|| _d S )Nz7Invalid value for transaction_style: %s (must be in %s))�TRANSACTION_STYLE_VALUES� ValueError�transaction_style�_failed_request_status_codes)�selfr9 r6 � r<