관리-도구
편집 파일: tornado.cpython-311.pyc
� �܋f� � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z m Z d dlmZm Z d dlmZmZmZmZmZ d dlmZmZ d d lmZmZmZ d d lmZ d dlmZ d dlm Z! d d l"m#Z#m$Z$ d dl%m&Z& n# e'$ r ed� � �w xY wd dl(m)Z) e)r$d dl*m+Z+ d dl*m,Z, d dl*m-Z- d dl*m.Z. d dl*m/Z/ d dl(m0Z0 G d� de� � Z1ej2 d� � � Z3d� Z4d� Z5 G d� de� � Z6dS )� N)�iscoroutinefunction)�continue_trace)�OP)�Hub�_should_send_default_pii)�TRANSACTION_SOURCE_COMPONENT�TRANSACTION_SOURCE_ROUTE)�HAS_REAL_CONTEXTVARS�CONTEXTVARS_ERROR_MESSAGE�event_from_exception�capture_internal_exceptions�transaction_from_function)�Integration�DidNotEnable)�RequestExtractor�_filter_headers�_is_json_content_type)� ignore_logger)� iteritems)�version_info)�RequestHandler� HTTPError)� coroutinezTornado not installed)� TYPE_CHECKING)�Any)�Optional)�Dict)�Callable)� Generator)�EventProcessorc �( � e Zd ZdZed� � � ZdS )�TornadoIntegration�tornadoc �T ��� t dk rt d� � �t st dt z � � �t d� � t j �t �� � } | r�fd�}nt �fd�� � }|t _ t j ��fd�}|t _ d S )N)� r zTornado 5+ requiredzUThe tornado integration for Sentry requires Python 3.7+ or the aiocontextvars packageztornado.accessc � �~ �K � t | � � 5 �| g|�R i |��� d {V ��cd d d � � S # 1 swxY w Y d S �N��_handle_request_impl)�self�args�kwargs�old_executes ��V/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/integrations/tornado.py�sentry_execute_request_handlerzETornadoIntegration.setup_once.<locals>.sentry_execute_request_handlerI s� �� � � �)�$�/�/� D� D�!,��T�!C�D�!C�!C�!C�F�!C�!C�C�C�C�C�C�C�D� D� D� D� D� D� D� D� D� D� D� D���� D� D� D� D� D� Ds �2�6�6c ? � �K � t | � � 5 �| g|�R i |��E d {V ��}|cd d d � � S # 1 swxY w Y d S r'