§
    ZŠtjp  ã                   ó„   — 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dS )é    )Ú
create_keyÚ	get_valueÚ	set_value)ÚContext)ÚINVALID_SPANÚSpanzcurrent-spanNÚspanÚcontextÚreturnc                 ó4   — 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      úf/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/opentelemetry/trace/propagation/__init__.pyÚset_span_in_contextr      s   € õ •I˜t¨WÐ
5Ñ
5Ô
5€CØ€Jó    c                 ón   — 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      s4   € õ •Y¨Ð0Ñ0Ô0€DØ€|�: d­DÑ1Ô1€|ÝÐØ€Kr   )N)Úopentelemetry.contextr   r   r   Úopentelemetry.context.contextr   Úopentelemetry.trace.spanr   r   ÚSPAN_KEYr   r   r   © r   r   ú<module>r      sË   ðð CÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BØ 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7à€ØˆJ�~Ñ&Ô&€	ð	ð 	˜dð 	¨W°t©^ð 	Àwð 	ð 	ð 	ð 	ðð ˜g¨™nð ¸ð ð ð ð ð ð r   