bg0"ddlZddlmZddlmZddlmZddlmZm Z ergddl m Z ddl m Z ddl m Z dd l mZdd l mZdd l mZdd l mZdd l mZddlmZmZmZmZmZmZddlmZedZedede fZndZgdZdZdZe d1dZe d1dZ e d1dZ!e d1dZ"edZ#edZ#e d2dZ#edZ$ed Z$e d2d!Z$ed"Z%ed#Z&ed$Z'ed%Z(ed&Z)e d1d'Z*ed(Z+e d2d)Z,e d2d*Z-d3d,Z.d2d-Z/d.Z0d/Z1d4d0Z2dS)5N) TYPE_CHECKING)Hub)Scope)NoOpSpan Transaction)Any)Dict)Optional)overload)Callable)TypeVar)ContextManager)Union)EventHint BreadcrumbBreadcrumbHintExcInfoMeasurementUnit)SpanTF.)boundc|SN)xs E/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/api.pyr r s) capture_eventcapture_messagecapture_exceptionadd_breadcrumbconfigure_scope push_scopeflush last_event_id start_spanstart_transactionset_tag set_context set_extraset_user set_levelset_measurementget_current_spanget_traceparent get_baggagecontinue_tracecd|jzdtjtt|j|_|S)Nz&Alias for :py:meth:`sentry_sdk.Hub.%s` )__name__inspectgetdocgetattrr__doc__fs r hubmethodr=>s@ 11:===wsAJ//000AI Hrcd|jzdtjtt|j|_|S)Nz(Alias for :py:meth:`sentry_sdk.Scope.%s`r5)r6r7r8r9rr:r;s r scopemethodr?Gs@ 3QZ???wuaj11222AI Hrc 6tjj||fd|i|SNscope)rcurrentr )eventhintrB scope_argss rr r Ps& ; $UD L L L L LLrc 6tjj||fd|i|SrA)rrCr!)messagelevelrBrFs rr!r![s& ; &w Q QU Qj Q QQrc 4tjj|fd|i|SrA)rrCr")errorrBrFs rr"r"fs$ ; ( J Je Jz J JJrc 2tjj||fi|Sr)rrCr#)crumbrEkwargss rr#r#ps! ; %eT < tjSr)rrCr'rrrr'r's ; $ $ & &&rc 2tjjdd|i|S)Nspanr)rrCr()rgrNs rr(r(s" ; ! 6 6t 6v 6 66rc 0tjj|fi|Sr)rrCr)) transactionrNs rr)r)s ; ( ? ? ? ??rchtjjj}|||||dSdSr)rrCrBrir/)namer\unitris rr/r/s;+#/K##D%66666rc:| tj}|jj}|S)zU Returns the currently active span if there is one running, otherwise `None` )rrCrBrg)hub current_spans rr0r0s  {k9>L rc>tjS)zP Returns the traceparent either from the active span or from the scope. )rrCr1rrrr1r1s ; & & ( ((rc>tjS)zH Returns Baggage either from the active span or from the scope. )rrCr2rrrr2r2s ; " " $ $$rcFtj||||S)z] Sets the propagation context from environment or headers and returns a transaction. )rrCr3)environ_or_headersoprlsources rr3r3s! ; % %&8"dF K KKr)NNr)rj)NNN)3r7sentry_sdk._typesrsentry_sdk.hubrsentry_sdk.scopersentry_sdk.tracingrrtypingrr r r r r rrrrrrrrrrr__all__r=r?r r!r"r#r$r%r*r+r,r-r.r&r'r(r)r/r0r1r2r3rrrr}s++++++""""""44444444%%%%%%(''''' A8CH-...AA    0         MMM M   RRR R  KKK K  === =           111 1           ,,, , 11 1  55 5  33 3  -- -  .. .   AAA A '' '  777 7 @@@ @7777    )))%%%LLLLLLr