관리-도구
편집 파일: tornado.cpython-311.pyc
� %��U����� �f � d dl Z d dlmZ d dlmZmZ d dlmZmZm Z m Z mZ d dlm Z mZ d dlmZmZmZ d dlmZ d dlmZ d d lmZ d d lmZmZ d dlmZ n# e$ r ed� � �w xY wd d l m!Z! e!rd dl"m#Z# d dl"m$Z$ d dl"m%Z% d dl"m&Z& d dl m'Z' G d� de � � Z(d� Z)d� Z* G d� de� � Z+dS )� N)�iscoroutinefunction)�Hub�_should_send_default_pii)�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)�MYPY)�Any)�Optional)�Dict)�Callable)�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 j }|� t � � }|� �| g|�R i |��� d {V ��S t j | � � }t |� � 5 }|� � � 5 }|� � � t |� � }|� |� � d d d � � n# 1 swxY w Y �| g|�R i |��� d {V ��cd d d � � S # 1 swxY w Y d S �N� r �current�get_integrationr �weakref�ref�configure_scope�clear_breadcrumbs�_make_event_processor�add_event_processor) �self�args�kwargs�hub�integration�weak_handler�scope� processor�old_executes ��/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations/tornado.py�sentry_execute_request_handlerzETornadoIntegration.setup_once.<locals>.sentry_execute_request_handlerA s� �� � � ��k��!�1�1�2D�E�E���&�!,��T�!C�D�!C�!C�!C�F�!C�!C�C�C�C�C�C�C�C�&�{�4�0�0����X�X� D���,�,�.�.� =�%��/�/�1�1�1�$9�,�$G�$G� ��1�1�)�<�<�<�=� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� "-��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� Ds6 �!C$�69B;�/C$�;B? �?C$�B? �C$�$C(�+C(c ? �� �K � t j }|� t � � }|� � | g|�R i |��S t j | � � }t |� � 5 }|� � � 5 }|� � � t |� � }|� |� � d d d � � n# 1 swxY w Y � | g|�R i |��E d {V ��}|cd d d � � S # 1 swxY w Y d S r"