[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.147.193: ~ $
�

>�Dgw>��p�ddlmZddlmZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZerhdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlmZddlmZmZmZmZmZmZmZddlmZddl m!Z!ededef���Z"ed��Z#gZ$d�Z%d�Z&d�Z'Gd�de(��Z)dS)�)�copy)�deque)�chain��wraps)�MYPY)�logger�capture_internal_exceptions)�Transaction)�
Attachment)�Any)�Dict)�Optional)�Deque)�List)�Callable)�TypeVar)�
Breadcrumb�Event�EventProcessor�ErrorProcessor�ExcInfo�Hint�Type)�Span)�Session�F.)�bound�Tc�:�t�|��dS�N)�global_event_processors�append)�	processors �G/opt/imunify360/venv/lib64/python3.11/site-packages/sentry_sdk/scope.py�add_global_event_processorr&(s���"�"�9�-�-�-�-�-�c�.�t||j���S)N)�fset�doc)�property�__doc__)�fns r%�_attr_setterr.-s������,�,�,�,r'c�<��t����fd���}|S)Nc�d��|jsdS	d|_�|g|�Ri|��d|_S#d|_wxYw)NFT)�_should_capture)�self�args�kwargsr-s   �r%�wrapperz!_disable_capture.<locals>.wrapper4s^����#�	��F�	(�#(�D� ��2�d�,�T�,�,�,�V�,�,�#'�D� � ��4�D� �'�'�'�'s�&�	/r)r-r5s` r%�_disable_capturer62s3���
�2�Y�Y�(�(�(�(��Y�(��Nr'c�d�eZdZdZdZd�Zd�Zed���Zd�Z	ed���Z
ed���Zej
d	���Zed
���Zd�Zed���Zej
d
���Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z					dd�Zd�Z	d d�Zed���Zd�Z						d!d�Zd�Zd�Z dS)"�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_processorsr1�_span�_session�_attachments�_force_auto_session_trackingc�X�g|_g|_d|_|���dSr!)rBrCr:�clear�r2s r%�__init__zScope.__init__bs*��!#���!#�����
��
�
�����r'c���d|_d|_d|_d|_i|_i|_i|_g|_|���d|_	d|_
d|_d|_dS)zClears the entire scope.NT)
r9r;r<r=r>r?r@rF�clear_breadcrumbsr1rDrErGrJs r%rIzScope.clearjsu����� ��� �����
���
������������� � � �#�����
���
�,0��)�)�)r'c��||_dS)zDWhen set this overrides the level. Deprecated in favor of set_level.N�r9�r2�values  r%�levelzScope.level~s������r'c��||_dS)zSets the level for the scope.NrOrPs  r%�	set_levelzScope.set_level�s������r'c��||_dS)z0When set this overrides the default fingerprint.N)r;rPs  r%�fingerprintzScope.fingerprint�s��"����r'c��|j�dSt|jt��r|jS|jjr|jjSdS)z8Return the transaction (root span) in the scope, if any.N)rD�
isinstancer�_containing_transactionrJs r%�transactionzScope.transaction�sP���:���4��d�j�+�.�.�	��:���:�-�	6��:�5�5��tr'c�f�||_|j}|rt|t��r||_dSdSdS)z;When set this forces a specific transaction name to be set.N)r<rDrXr�name)r2rQ�spans   r%rZzScope.transaction�sK��"����z���	�J�t�[�1�1�	��D�I�I�I�	�	�	�	r'c�0�|�|��dS)zPWhen set a specific user is bound to the scope. Deprecated in favor of set_user.N)�set_userrPs  r%�userz
Scope.user�s��	
�
�
�e�����r'c�\�||_|j�|j�|���dSdS)zSets a user for the scope.N)r`)r=rE�updaterPs  r%r_zScope.set_user�s:����
��=�$��M� � �e� �,�,�,�,�,�%�$r'c��|jS)z,Get/set current tracing span or transaction.)rDrJs r%r]z
Scope.span�s���z�r'c�p�||_t|t��r|}|jr|j|_dSdSdSr!)rDrXrr\r<)r2r]rZs   r%r]z
Scope.span�sT����
��d�K�(�(�	5��K���
5�$/�$4��!�!�!�	5�	5�
5�
5r'c��||j|<dS)z)Sets a tag for a key to a specific value.N)r>�r2�keyrQs   r%�set_tagz
Scope.set_tag�s�� ��
�3���r'c�<�|j�|d��dS)zRemoves a specific tag.N)r>�pop�r2rgs  r%�
remove_tagzScope.remove_tag�s ��
	
�
���s�D�!�!�!�!�!r'c��||j|<dS)z5Binds a context at a certain key to a specific value.N)r?rfs   r%�set_contextzScope.set_context�s��$���s���r'c�<�|j�|d��dS)zRemoves a context.N)r?rjrks  r%�remove_contextzScope.remove_context�s"��
	
����3��%�%�%�%�%r'c��||j|<dS)z&Sets an extra key to a specific value.N)r@rfs   r%�	set_extrazScope.set_extra�s��"���S���r'c�<�|j�|d��dS)zRemoves a specific extra key.N)r@rjrks  r%�remove_extrazScope.remove_extras"��
	
�����d�#�#�#�#�#r'c�,�t��|_dS)zClears breadcrumb buffer.N)rrArJs r%rMzScope.clear_breadcrumbss��"�G�G����r'NFc	�^�|j�t|||||�����dS)z)Adds an attachment to future events sent.)�bytes�path�filename�content_type�add_to_transactionsN)rFr#r)r2rwryrxrzr{s      r%�add_attachmentzScope.add_attachment
sJ��	
�� � ����!�)�$7�
�
�
�	
�	
�	
�	
�	
r'c��t|j��dkr$tjd|j��|jdd�=|j�|��dS)z}Register a scope local event processor on the scope.

        :param func: This function behaves like `before_send.`
        �zLToo many event processors on scope! Clearing list to free up some memory: %rN)�lenrBr	�warningr#)r2�funcs  r%�add_event_processorzScope.add_event_processor!se���t�%�&�&��+�+��N�^��&�
�
�
��&�q�q�q�)���%�%�d�+�+�+�+�+r'c�V���|�
|�|���fd�}|j�|��dS)aRegister a scope local error processor on the scope.

        :param func: A callback that works similar to an event processor but is invoked with the original exception info triple as second argument.

        :param cls: Optionally, only process exceptions of this type.
        Nc�x��	t|d���}n#t$rd}YnwxYw|r�||��S|S)N�F)rX�	Exception)�event�exc_info�is_inst�cls_�	real_funcs   ��r%r�z'Scope.add_error_processor.<locals>.funcBs`���$�(��!��d�;�;�G�G�� �$�$�$�#�G�G�G�$�����6�$�9�U�H�5�5�5��s��)�))rCr#)r2r��clsr�r�s   @@r%�add_error_processorzScope.add_error_processor2sR�����?��D��I�
�
�
�
�
�
�	
��%�%�d�+�+�+�+�+r'c�v�d�}|�d��dk}|�d��pg}|jD] }|r|jr|�|���!||d<|j�
|j|d<|sB|�di���dg���|j��|�d	���|j�
|j|d	<|�d���|j	�
|j	|d<|�d
���|j
�
|j
|d
<|jr.|�di���|j��|j
r.|�di���|j
��|jr.|�d
i���|j��|j�G|�d
i��}|�d��s|j���|d<|�d��}|�)|jD]!}	|	||��}
|
�|||	d��cS|
}�"t%t&|j��D]I}|}
t+��5|||��}
ddd��n#1swxYwY|
�|||d��cS|
}�J|S)zBApplies the information contained on the scope to the given event.c�4�tjd|||��dS)Nz%s (%s) dropped event (%s))r	�info)r��cause�tys   r%�_dropz#Scope.apply_to_event.<locals>._dropWs���K�4�b�%��G�G�G��4r'�typerZ�attachmentsNrR�breadcrumbs�valuesr`rV�extra�tags�contexts�tracer�zerror processorzevent processor)�getrFr{r#r9�
setdefault�extendrAr=r<r;r@rbr>r?rD�get_trace_contextrCrr"rBr
)r2r��hintr��is_transaction�attachments_to_send�
attachmentr�r��error_processor�	new_event�event_processors            r%�apply_to_eventzScope.apply_to_eventNsP��	�	�	�
���6�*�*�m�;��
#�h�h�}�5�5�;����+�	7�	7�J�!�
7�Z�%C�
7�#�*�*�:�6�6�6��1��]���;�"�!�[�E�'�N��	����]�B�/�/�:�:�8�R�H�H�O�O��!�
�
�
��9�9�V���$���)?� �J�E�&�M��9�9�]�#�#�+��0A�0M�#'�#4�E�-� ��9�9�]�#�#�+��0A�0M�#'�#4�E�-� ��<�	?����W�b�)�)�0�0���>�>�>��:�	<����V�R�(�(�/�/��
�;�;�;��>�	D����Z��,�,�3�3�D�N�C�C�C��:�!��'�'�
�B�7�7�H��<�<��(�(�
C�$(�J�$@�$@�$B�$B���!��8�8�J�'�'����#'�#9�
"�
"��+�O�E�8�<�<�	��$� �5���9J�K�K�K�K�K�!���$�%<�d�>T�U�U�	�	�O��I�,�.�.�
9�
9�+�O�E�4�8�8�	�
9�
9�
9�
9�
9�
9�
9�
9�
9�
9�
9����
9�
9�
9�
9�� ��u�U�O�5F�G�G�G�G�G��E�E��s�
J�J	�!J	c�D�|j�|j|_|j�|j|_|j�|j|_|j�|j|_|jr|j�|j��|jr|j�|j��|jr|j�|j��|jr|j�	|j��|j
r|j
|_
|jr!|j�	|j��dSdSr!)r9r;r<r=r>rbr?r@rAr�rDrF)r2�scopes  r%�update_from_scopezScope.update_from_scope�s���<�#��,�D�K���)� %� 2�D����)� %� 2�D���;�"���D�J��;�	+��J���e�k�*�*�*��?�	3��N�!�!�%�/�2�2�2��=�	/��L����
�.�.�.���	9���$�$�U�%7�8�8�8��;�	%���D�J���	9���$�$�U�%7�8�8�8�8�8�	9�	9r'c���|�||_|�||_|�|j�|��|�|j�|��|�|j�|��|�	||_dSdSr!)r9r=r@rbr?r>r;)r2r`rR�extrasr�r�rVs       r%�update_from_kwargszScope.update_from_kwargs�s������D�K����D�J����L����'�'�'����N�!�!�(�+�+�+����J���d�#�#�#��"� +�D����#�"r'c�z�t�|j��}|j|_|j|_|j|_|j|_|j|_t|j	��|_	t|j
��|_
t|j��|_t|j
��|_
t|j��|_t|j��|_|j|_|j|_|j|_|j|_t|j��|_|Sr!)�object�__new__�	__class__r9r:r;r<r=�dictr>r?r@rrA�listrBrCr1rDrErGrF)r2�rvs  r%�__copy__zScope.__copy__�s���
�^�^�D�N�
+�
+���K��	��:����+����+����:�����
�#�#����D�N�+�+����$�,�'�'��
��t�0�1�1���#�D�$:�;�;���#�D�$:�;�;���!�1����:����m���*.�*K��'��t�0�1�1����	r'c�l�d|jj�dtt|�����d|j�d�S)N�<z id=z name=�>)r��__name__�hex�idr:rJs r%�__repr__zScope.__repr__�s:���
�N�#�#�#���4���M�M�M�M��J�J�J�
�	
r')NNNNFr!)NNNNNN)!r��
__module__�__qualname__r,�	__slots__rKrIr.rRrTrVr+rZ�setterr`r_r]rhrlrnrprrrtrMr|r�r�r6r�r�r�r�r��r'r%r8r8BsO���������I�*���1�1�1�(����\��
���
�"�"��\�"�
����X��.�������$����\��
-�-�-�����X��

�[�5�5��[�5� � � �"�"�"�$�$�$�&�&�&�"�"�"�$�$�$�$�$�$���
��!�

�
�
�
�(,�,�,�(
�,�,�,�,�8�G�G���G�R9�9�9�2����
��,�,�,�,�.���4
�
�
�
�
r'r8N)*r�collectionsr�	itertoolsr�sentry_sdk._functoolsr�sentry_sdk._typesr�sentry_sdk.utilsr	r
�sentry_sdk.tracingr�sentry_sdk.attachmentsr�typingr
rrrrrrrrrrrrrr�sentry_sdk.sessionsrrrr"r&r.r6r�r8r�r'r%�<module>r�s>��������������������'�'�'�'�'�'�"�"�"�"�"�"�@�@�@�@�@�@�@�@�*�*�*�*�*�*�-�-�-�-�-�-���������������������������������������������������������������(�'�'�'�'�'�+�+�+�+�+�+����8�C��H�-�.�.�.�A������A���.�.�.�
-�-�-�

�
�
� d
�d
�d
�d
�d
�F�d
�d
�d
�d
�d
r'

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 992 B 0644
_compat.cpython-311.pyc File 3.78 KB 0644
_functools.cpython-311.pyc File 2.44 KB 0644
_queue.cpython-311.pyc File 11.64 KB 0644
_types.cpython-311.pyc File 1.79 KB 0644
api.cpython-311.pyc File 6.54 KB 0644
attachments.cpython-311.pyc File 2.29 KB 0644
client.cpython-311.pyc File 16.67 KB 0644
consts.cpython-311.pyc File 3.09 KB 0644
debug.cpython-311.pyc File 2.44 KB 0644
envelope.cpython-311.pyc File 12.58 KB 0644
hub.cpython-311.pyc File 25.07 KB 0644
scope.cpython-311.pyc File 16.48 KB 0644
serializer.cpython-311.pyc File 16.5 KB 0644
sessions.cpython-311.pyc File 8.71 KB 0644
tracing.cpython-311.pyc File 27.45 KB 0644
transport.cpython-311.pyc File 16.72 KB 0644
utils.cpython-311.pyc File 32.93 KB 0644
worker.cpython-311.pyc File 7.23 KB 0644