+
    ~j                    $   ^ RI Ht ^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHt ^ RIHt ^ RIHt ]P"                  ! ]4      tR	 R
 lt]! 4       tR R ltRR R lltRR R lltR R ltR R ltR R lt]! R4      t]! R4      t. ROtR# )    )annotationsN)Token)environ)uuid4)Context_RuntimeContext)OTEL_PYTHON_CONTEXT)entry_pointsc                   V ^8  d   QhRR/# )   returnr    )formats   "s/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/opentelemetry/context/__init__.py__annotate__r      s     $ $ $    c            
     V   Rp \         P                  ! \        V 4      p \        \	        \        RVR7      4      4      P                  4       ! 4       #   \         dM    \        P                  RTT 4       \        \	        \        RT R7      4      4      P                  4       ! 4       u # i ; i)zKInitialize the RuntimeContext

Returns:
    An instance of RuntimeContext.
contextvars_contextopentelemetry_context)groupnamez*Failed to load context: %s, fallback to %s)
r   getr	   nextiterr
   load	Exceptionlogger	exception)default_contextconfigured_contexts     r   _load_runtime_contextr!      s     ,O %8/J1+
 $&  	  8	

 1(
 $&  	s   1A AB('B(c                    V ^8  d   QhRRRR/# )r   keynamestrr   r   )r   s   "r   r   r   I   s     	( 	( 	( 	(r   c                D    V R,           \        \        4       4      ,           # )aI  To allow cross-cutting concern to control access to their local state,
the RuntimeContext API provides a function which takes a keyname as input,
and returns a unique key.
Args:
    keyname: The key name is for debugging purposes and is not required to be unique.
Returns:
    A unique string representing the newly created key.
-)r$   r   )r#   s   &r   
create_keyr'   I   s     S=3uw<''r   c               $    V ^8  d   QhRRRRRR/# )r   keyr$   contexttyping.Optional[Context]r   'object'r   )r   s   "r   r   r   U   s'     O O3 O!9 OX Or   c                ^    Ve   VP                  V 4      # \        4       P                  V 4      # )aV  To access the local state of a concern, the RuntimeContext API
provides a function which takes a context and a key as input,
and returns a value.

Args:
    key: The key of the value to retrieve.
    context: The context from which to retrieve the value, if None, the current context is used.

Returns:
    The value associated with the key.
)r   get_current)r)   r*   s   &&r   	get_valuer/   U   s*      '27;;sN8I8I#8NNr   c               (    V ^8  d   QhRRRRRRRR/# )	r   r)   r$   valuer,   r*   r+   r   r   r   )r   s   "r   r   r   d   s,      	(@r   c                \    Vf   \        4       pVP                  4       pWV &   \        V4      # )a  To record the local state of a cross-cutting concern, the
RuntimeContext API provides a function which takes a context, a
key, and a value as input, and returns an updated context
which contains the new value.

Args:
    key: The key of the entry to set.
    value: The value of the entry to set.
    context: The context to copy, if None, the current context is used.

Returns:
    A new `Context` containing the value set.
)r.   copyr   )r)   r1   r*   
new_valuess   &&& r   	set_valuer5   d   s-      -JsO:r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   {   s     * *W *r   c                 *    \         P                  4       # )zTo access the context associated with program execution,
the Context API provides a function which takes no arguments
and returns a Context.

Returns:
    The current `Context` object.
)_RUNTIME_CONTEXTr.   r   r   r   r.   r.   {   s     ''))r   c                    V ^8  d   QhRRRR/# )r   r*   r   r   Token[Context]r   )r   s   "r   r   r      s     
, 
,G 
, 
,r   c                ,    \         P                  V 4      # )zAssociates a Context with the caller's current execution unit. Returns
a token that can be used to restore the previous Context.

Args:
    context: The Context to set as current.

Returns:
    A token that can be used with `detach` to reset the context.
)r8   attach)r*   s   &r   r<   r<      s     ""7++r   c                    V ^8  d   QhRRRR/# )r   tokenr:   r   Noner   )r   s   "r   r   r      s     
5 
5. 
5T 
5r   c                     \         P                  V 4       R#   \         d    \        P	                  R4        R# i ; i)zResets the Context associated with the caller's current execution unit
to the value it had before attaching a specified Context.

Args:
    token: The Token that was returned by a previous call to attach a Context.
zFailed to detach contextN)r8   detachr   r   r   )r>   s   &r   rA   rA      s3    5& 5345s     ==suppress_instrumentationsuppress_http_instrumentation)N)r   r<   r'   rA   r.   r/   r5   )
__future__r   loggingtypingcontextvarsr   osr   uuidr   opentelemetry.context.contextr   r   #opentelemetry.environment_variablesr	   &opentelemetry.util._importlib_metadatar
   	getLogger__name__r   r!   r8   r'   r/   r5   r.   r<   rA   _SUPPRESS_INSTRUMENTATION_KEY"_SUPPRESS_HTTP_INSTRUMENTATION_KEY__all__r   r   r   <module>rR      s    #      C C ?			8	$$N )* 	(O.*
,
5  !++E F %/#& "r   