HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/mysql/opentelemetry/propagators/__pycache__/composite.cpython-39.pyc
a

�,�h��@spddlZddlZddlmZddlmZddlmZe�e�Z	Gdd�dej
�Zeddd	�Gd
d�de��ZdS)�N)�
deprecated)�Context)�textmapc@s�eZdZdZejejdd�dd�Zdej	fej
ejeej
ej
ed�dd�Zdejfej
ejeejej
dd	�d
d�Zeejed�d
d��ZdS)�CompositePropagatorz�CompositePropagator provides a mechanism for combining multiple
    propagators into a single one.

    Args:
        propagators: the list of propagators to use
    N)�propagators�returncCs
||_dS)N)�_propagators)�selfr�r
�\/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/opentelemetry/propagators/composite.py�__init__ szCompositePropagator.__init__)�carrier�context�getterrcCs |jD]}|j|||d�}q|S)akRun each of the configured propagators with the given context and carrier.
        Propagators are run in the order they are configured, if multiple
        propagators write the same context key, the propagator later in the list
        will override previous propagators.

        See `mysql.opentelemetry.propagators.textmap.TextMapPropagator.extract`
        )r)r�extract)r	r
rr�
propagatorr
r
rr#s
zCompositePropagator.extract)r
r�setterrcCs |jD]}|j|||d�qdS)ajRun each of the configured propagators with the given context and carrier.
        Propagators are run in the order they are configured, if multiple
        propagators write the same carrier key, the propagator later in the list
        will override previous propagators.

        See `mysql.opentelemetry.propagators.textmap.TextMapPropagator.inject`
        )rN)r�inject)r	r
rrrr
r
rr4s
zCompositePropagator.inject)rcCs,t�}|jD]}|jD]}|�|�qq|S)z�Returns a set with the fields set in `inject`.

        See
        `mysql.opentelemetry.propagators.textmap.TextMapPropagator.fields`
        )�setr�fields�add)r	Zcomposite_fieldsr�fieldr
r
rrDs


zCompositePropagator.fields)�__name__�
__module__�__qualname__�__doc__�typing�Sequencer�TextMapPropagatorrZdefault_getterZCarrierT�OptionalrZGetterrZdefault_setterZSetterr�property�Set�strrr
r
r
rrs(�
��
�rz1.2.0z"You should use CompositePropagator)�version�reasonc@seZdZdZdS)�CompositeHTTPPropagatorzkCompositeHTTPPropagator provides a mechanism for combining multiple
    propagators into a single one.
    N)rrrrr
r
r
rr%Tsr%)
�loggingrrZ#mysql.opentelemetry.context.contextrZmysql.opentelemetry.propagatorsr�	getLoggerr�loggerrrr%r
r
r
r�<module>s
<