$10 GRAYBYTE WORDPRESS FILE MANAGER $24

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/__pycache__/

HOME
Current File : /opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/__pycache__//scope.cpython-38.pyc
U

��\�@stddlmZddlmZddlmZddlmZddlmZm	Z	m
Z
gZdd�Zdd	�Zd
d�ZGdd
�d
e�ZdS)�)�copy)�deque��wraps)�chain)�logger�capture_internal_exceptions�object_to_jsoncCst�|�dS�N)�global_event_processors�append)�	processor�r�A/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/scope.py�add_global_event_processorsrcCst||jd�S)N)�fset�doc)�property�__doc__��fnrrr�_attr_settersrcst���fdd��}|S)Ncs2|js
dSzd|_�|f|�|�W�Sd|_XdS)NTF)�_should_capture)�self�args�kwargsrrr�wrappersz!_disable_capture.<locals>.wrapperr)rrrrr�_disable_captures
rc@s�eZdZdZdZdd�Zedd��Zedd��Zed	d
��Z	edd��Z
d
d�Zdd�Zdd�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_processorsrcCsg|_g|_d|_|��dSr
)r(r)r �clear�rrrr�__init__@szScope.__init__cCs
||_dS)z"When set this overrides the level.N)r�r�valuerrr�levelGszScope.levelcCs
||_dS)z0When set this overrides the default fingerprint.N)r!r-rrr�fingerprintLszScope.fingerprintcCs
||_dS)z;When set this forces a specific transaction name to be set.N)r"r-rrr�transactionQszScope.transactioncCs
||_dS)z/When set a specific user is bound to the scope.N)r#r-rrr�userVsz
Scope.usercCs||j|<dS)z)Sets a tag for a key to a specific value.N)r$�r�keyr.rrr�set_tag[sz
Scope.set_tagcCs|j�|d�dS)zRemoves a specific tag.N)r$�pop�rr4rrr�
remove_tag_szScope.remove_tagcCs||j|<dS)z5Binds a context at a certain key to a specific value.N)r%r3rrr�set_contextcszScope.set_contextcCs|j�|d�dS)zRemoves a context.N)r%r6r7rrr�remove_contextgszScope.remove_contextcCs||j|<dS)z&Sets an extra key to a specific value.N)r&r3rrr�	set_extrakszScope.set_extracCs|j�|d�dS)zRemoves a specific extra key.N)r&r6r7rrr�remove_extraoszScope.remove_extracCs<d|_d|_d|_d|_i|_i|_i|_|��d|_dS)zClears the entire scope.NT)	rr!r"r#r$r%r&�clear_breadcrumbsrr+rrrr*sszScope.clearcCst�|_dS)zClears breadcrumb buffer.N)rr'r+rrrr=�szScope.clear_breadcrumbscCs|j�|�dS)zq"Register a scope local event processor on the scope.

        This function behaves like `before_send.`
        N)r(r)r�funcrrr�add_event_processor�szScope.add_event_processorNcs*�dk	r|���fdd�}|j�|�dS)z�"Register a scope local error processor on the scope.

        The error processor works similar to an event processor but is
        invoked with the original exception info triple as second argument.
        Ncs>zt|d��}Wntk
r*d}YnX|r:�||�S|S)N�F)�
isinstance�	Exception)�event�exc_infoZis_inst��clsZ	real_funcrrr>�s

z'Scope.add_error_processor.<locals>.func)r)r)rr>rFrrEr�add_error_processor�s	zScope.add_error_processorc
Cs�dd�}|jdk	r|j|d<|�dg��|j�|�d�dkrR|jdk	rR|j|d<|�d�dkrt|jdk	rt|j|d<|�d�dkr�|jdk	r�|j|d<|jr�|�d	i��	t
|j��|jr�|�d
i��	|j�|jr�|�di��	|j�|dk	r�|�d�nd}|dk	�r>|j
D].}|||�}|dk�r6|||d
�S|}�qtt|j�D]D}|}t��|||�}W5QRX|dk�r�|||d�S|}�qJ|S)zBApplies the information contained on the scope to the given event.cSst�d|||�dS)Nz%s (%s) dropped event (%s))r�info)rC�cause�tyrrr�_drop�sz#Scope.apply_to_event.<locals>._dropNr/Zbreadcrumbsr2r1r0�extraZtagsZcontextsrDzerror processorzevent processor)r�
setdefault�extendr'�getr#r"r!r&�updater	r$r%r)rrr(r)rrCZhintrKrDr
Z	new_eventrrr�apply_to_event�s>









zScope.apply_to_eventcCs�t�|j�}|j|_|j|_|j|_|j|_|j|_t|j	�|_	t|j
�|_
t|j�|_t|j
�|_
t|j�|_t|j�|_|j|_|Sr
)�object�__new__�	__class__rr r!r"r#�dictr$r%r&rr'�listr(r)r)r�rvrrr�__copy__�szScope.__copy__cCsd|jjtt|��|jfS)Nz<%s id=%s name=%s>)rT�__name__�hex�idr r+rrr�__repr__�s

�zScope.__repr__)N)N)rY�
__module__�__qualname__r�	__slots__r,rr/r0r1r2r5r8r9r:r;r<r*r=r?rGrrQrXr\rrrrr,s2




1rN)r�collectionsr�	functoolsr�	itertoolsrZsentry_sdk.utilsrrr	ZAny�Callable�Dict�OptionalZDequeZListrrrrrRrrrrr�<module>s


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.24 AM
root / linksafe
0755
__init__.cpython-38.opt-1.pyc
1.485 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
__init__.cpython-38.pyc
1.485 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
_compat.cpython-38.opt-1.pyc
2.513 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
_compat.cpython-38.pyc
2.513 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
api.cpython-38.opt-1.pyc
2.889 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
api.cpython-38.pyc
2.889 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
client.cpython-38.opt-1.pyc
6.12 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
client.cpython-38.pyc
6.12 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
consts.cpython-38.opt-1.pyc
0.945 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
consts.cpython-38.pyc
0.945 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
debug.cpython-38.opt-1.pyc
1.572 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
debug.cpython-38.pyc
1.572 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
hub.cpython-38.opt-1.pyc
11.588 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
hub.cpython-38.pyc
11.588 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
scope.cpython-38.opt-1.pyc
6.356 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
scope.cpython-38.pyc
6.356 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
transport.cpython-38.opt-1.pyc
5.657 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
transport.cpython-38.pyc
5.657 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
utils.cpython-38.opt-1.pyc
20.44 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
utils.cpython-38.pyc
20.44 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
worker.cpython-38.opt-1.pyc
3.22 KB
10 Jul 2020 5.54 PM
root / linksafe
0644
worker.cpython-38.pyc
3.22 KB
10 Jul 2020 5.54 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF