§
    .çh¥  ã                   óê   — U d dl Z d dlmZmZ ddlmZ erddlmZ ddlmZ  e j	        dd¬	¦  «        Z
e j	        d
         ed<    e j	        dd¬	¦  «        Ze j	        d         ed<    G d„ d¦  «        ZdS )é    N)ÚTYPE_CHECKINGÚAnyé   )Úloggeré   )ÚSpan)ÚTraceÚcurrent_span)ÚdefaultúSpan[Any] | NoneÚ_current_spanÚcurrent_traceúTrace | NoneÚ_current_tracec                   ó¢   — e Zd ZdZedd„¦   «         Zedd„¦   «         Zedd
„¦   «         Zedd„¦   «         Zedd„¦   «         Z	edd„¦   «         Z
d	S )ÚScopez<
    Manages the current span and trace in the context.
    Úreturnr   c                 ó4   — t                                ¦   «         S ©N)r   Úget©Úclss    úQ/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/agents/tracing/scope.pyÚget_current_spanzScope.get_current_span   s   € å× Ò Ñ"Ô"Ð"ó    Úspanú#contextvars.Token[Span[Any] | None]c                 ó6   — t                                |¦  «        S r   )r   Úset)r   r   s     r   Úset_current_spanzScope.set_current_span   s   € å× Ò  Ñ&Ô&Ð&r   ÚtokenNc                 ó:   — t                                |¦  «         d S r   )r   Úreset©r   r!   s     r   Úreset_current_spanzScope.reset_current_span!   s   € å×Ò˜EÑ"Ô"Ð"Ð"Ð"r   r   c                 ó4   — t                                ¦   «         S r   )r   r   r   s    r   Úget_current_tracezScope.get_current_trace%   s   € å×!Ò!Ñ#Ô#Ð#r   Útraceúcontextvars.Token[Trace | None]c                 óv   — t          j        d|r|j        nd › ¦  «         t                               |¦  «        S )NzSetting current trace: )r   ÚdebugÚtrace_idr   r   )r   r(   s     r   Úset_current_tracezScope.set_current_trace)   s:   € åŒÐRÀÐ/P¨u¬~¨~ÈDÐRÐRÑSÔSÐSÝ×!Ò! %Ñ(Ô(Ð(r   c                 ób   — t          j        d¦  «         t                               |¦  «         d S )NzResetting current trace)r   r+   r   r#   r$   s     r   Úreset_current_tracezScope.reset_current_trace.   s-   € åŒÐ.Ñ/Ô/Ð/Ý×Ò˜UÑ#Ô#Ð#Ð#Ð#r   )r   r   )r   r   r   r   )r!   r   r   N)r   r   )r(   r   r   r)   )r!   r)   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úclassmethodr   r    r%   r'   r-   r/   © r   r   r   r      sÞ   € € € € € ðð ð ð#ð #ð #ñ „[ð#ð ð'ð 'ð 'ñ „[ð'ð ð#ð #ð #ñ „[ð#ð ð$ð $ð $ñ „[ð$ð ð)ð )ð )ñ „[ð)ð ð$ð $ð $ñ „[ð$ð $ð $r   r   )ÚcontextvarsÚtypingr   r   r   Úspansr   Útracesr	   Ú
ContextVarr   Ú__annotations__r   r   r5   r   r   ú<module>r<      s  ðà Ð Ð Ð Ð Ø %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à Ð Ð Ð Ð Ð àð ØÐÐÐÐÐØÐÐÐÐÐà<R¸KÔ<RØ˜Dð=ñ =ô =€ˆ{Ô%Ð&8Ô9ð ð ñ ð :P¸Ô9OØ˜Tð:ñ :ô :€Ô& ~Ô6ð ð ñ ð
$ð $ð $ð $ð $ñ $ô $ð $ð $ð $r   