
    ia                     v    d dl Z d dlmZmZ  G d de j        eef                   Z G d de          ZdgZ	dS )    N)ABCabstractmethodc                   "    e Zd ZdededdfdZdS )ContextkeyvaluereturnNc                     t           )N)
ValueError)selfr   r   s      ]/var/www/cyber-strat/venv/lib/python3.11/site-packages/mysql/opentelemetry/context/context.py__setitem__zContext.__setitem__   s        )__name__
__module____qualname__strobjectr    r   r   r   r      s=        s 6 d      r   r   c                   n    e Zd ZdZededefd            Zedefd            Zededdfd            Z	dS )	_RuntimeContextzThe RuntimeContext interface provides a wrapper for the different
    mechanisms that are used to propagate context in Python.
    Implementations can be made available via entry_points and
    selected through environment variables.
    contextr	   c                     dS )zSets the current `Context` object. Returns a
        token that can be used to reset to the previous `Context`.

        Args:
            context: The Context to set.
        Nr   )r   r   s     r   attachz_RuntimeContext.attach          r   c                     dS )z%Returns the current `Context` object.Nr   )r   s    r   get_currentz_RuntimeContext.get_current)   r   r   tokenNc                     dS )zpResets Context to a previous value

        Args:
            token: A reference to a previous Context.
        Nr   )r   r   s     r   detachz_RuntimeContext.detach-   r   r   )
r   r   r   __doc__r   r   r   r   r   r    r   r   r   r   r      s          g &    ^ 4W 4 4 4 ^4 F t    ^  r   r   )
typingabcr   r   Dictr   r   r   r   __all__r   r   r   <module>r&      s     # # # # # # # #    fk#v+&   
    c   : +r   