관리-도구
편집 파일: scope.cpython-38.pyc
U ��\ � @ st d dl m Z d dlmZ d dlmZ d dlmZ d dlmZm Z m Z g Zdd� Zdd � Zd d� ZG dd � d e�ZdS )� )�copy)�deque��wraps)�chain)�logger�capture_internal_exceptions�object_to_jsonc C s t �| � d S �N)�global_event_processors�append)� processor� r �A/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/scope.py�add_global_event_processor s r c C s t | | jd�S )N)�fset�doc)�property�__doc__��fnr r r �_attr_setter s r c s t � �� fdd��}|S )Nc s2 | j s d S zd| _ � | f|�|�W �S d| _ X d S )NTF)�_should_capture)�self�args�kwargsr r r �wrapper s z!_disable_capture.<locals>.wrapperr )r r r r r �_disable_capture s r c @ s� e Zd ZdZdZdd� Zedd� �Zedd� �Zed d � �Z edd� �Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd(d d!�Zed)d"d#��Zd$d%� Zd&d'� ZdS )*�ScopezaThe scope holds extra information that should be sent with all events that belong to it. )�_level�_name�_fingerprint�_transaction�_user�_tags� _contexts�_extras�_breadcrumbs�_event_processors�_error_processorsr c C s g | _ g | _d | _| �� d S r )r( r) r �clear�r r r r �__init__@ s zScope.__init__c C s || _ dS )z"When set this overrides the level.N)r �r �valuer r r �levelG s zScope.levelc C s || _ dS )z0When set this overrides the default fingerprint.N)r! r- r r r �fingerprintL s zScope.fingerprintc C s || _ dS )z;When set this forces a specific transaction name to be set.N)r"