관리-도구
편집 파일: hub.cpython-38.opt-1.pyc
U ��\�2 � @ s d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZmZmZ d d � Zed�Zdadd � ZG dd� de �Z!dd� Z"G dd� de#�Z$G dd� de �Z%G dd� de �Z&G dd� de e$��Z'e'� Z(e�)e(� dS )� N)�datetime)�contextmanager)�warn)�with_metaclass��Scope)�Client)�exc_info_from_error�event_from_exception�logger� ContextVarc C s | S �N� )�xr r �?/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/hub.py�overload s r Zsentry_current_hubc C s t jj} | sdS | jd S )NFZsend_default_pii)�Hub�current�client�options)r r r r �_should_send_default_pii( s r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )� _InitGuardc C s || _ d S r )�_client)�selfr r r r �__init__1 s z_InitGuard.__init__c C s | S r r �r r r r � __enter__4 s z_InitGuard.__enter__c C s | j }|d k r|�� d S r )r �close)r �exc_type� exc_value�tb�cr r r �__exit__7 s z_InitGuard.__exit__N��__name__� __module__�__qualname__r r r"