관리-도구
편집 파일: tracing_utils.cpython-38.pyc
U �Mg�U � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlmZm Z d dlZd dlZd dlmZmZ d dlmZmZmZmZmZmZmZmZmZmZmZ d dlm Z e �r d d lm!Z! d d lm"Z" d dlm#Z# d dlm$Z$ d d lm%Z% d dl&m'Z' e�(d�Z)dZ*G dd� de�Z+dd� Z,e j-d3dd��Z.dd� Z/dd� Z0dd� Z1dd � Z2d!d"� Z3d#d$� Z4G d%d&� d&�Z5G d'd(� d(�Z6d)d*� Z7d+d,� Z8d-d.� Z9d4d/d0�Z:d d1l;m<Z<m=Z=m>Z> e �r�d d2l;m?Z? dS )5� N)�Mapping)� timedelta)�wraps)�quote�unquote)�OP�SPANDATA)�capture_internal_exceptions�filename_for_module�Dsn�logger�match_regex_list�qualname_from_function� to_string� is_sentry_url�_is_external_source�_is_in_project_root�_module_in_list)� TYPE_CHECKING)�Any)�Dict)� Generator)�Optional)�Union)� FrameTypez5^[ ]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ ]*$z(([a-zA-Z0-9+/]{4})*([a-zA-Z0-9+/]{2,3})?c @ s. e Zd Zddd�Zdd� Zdd� Zdd � Zd S )�EnvironHeaders�HTTP_c C s || _ || _d S �N)�environ�prefix)�selfr r � r! �F/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/tracing_utils.py�__init__= s zEnvironHeaders.__init__c C s | j | j|�dd��� S �N�-�_)r r �replace�upper)r �keyr! r! r"