Ë
    `Qêjp  ã                   ó|   — d dl mZmZmZ d dlmZ d dlmZmZ dZ	 ed«      Z
ddededz  defd	„Zddedz  defd
„Zy)é    )Ú
create_keyÚ	get_valueÚ	set_value)ÚContext)ÚINVALID_SPANÚSpanzcurrent-spanNÚspanÚcontextÚreturnc                 ó*   — t        t        | |¬«      }|S )zÃSet the span in the given context.

    Args:
        span: The Span to set.
        context: a Context object. if one is not passed, the
            default current context is used instead.
    ©r
   )r   Ú	_SPAN_KEY)r	   r
   Úctxs      úm/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/opentelemetry/trace/propagation/__init__.pyÚset_span_in_contextr      s   € ô ”I˜t¨WÔ
5€CØ€Jó    c                 óX   — t        t        | ¬«      }|�t        |t        «      st        S |S )zôRetrieve the current span.

    Args:
        context: A Context object. If one is not passed, the
            default current context is used instead.

    Returns:
        The Span set in the context if it exists. INVALID_SPAN otherwise.
    r   )r   r   Ú
isinstancer   r   )r
   r	   s     r   Úget_current_spanr      s)   € ô ”Y¨Ô0€DØ€|œ: d¬DÔ1ÜÐØ€Kr   )N)Úopentelemetry.contextr   r   r   Úopentelemetry.context.contextr   Úopentelemetry.trace.spanr   r   ÚSPAN_KEYr   r   r   © r   r   ú<module>r      sX   ð÷ CÑ BÝ 1ß 7à€Ù�~Ó&€	ñ	˜dð 	¨W°t©^ð 	Àwó 	ñ˜g¨™nð ¸ô r   