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/sdk/util/__pycache__/instrumentation.cpython-39.pyc
a

�,�h`�@sDddlmZddlmZddlmZGdd�d�ZGdd�d�ZdS)	�)�dumps)�Optional)�
deprecatedc@s�eZdZdZdZeddd�deeeeed�dd	��Zd
d�Z	dd
�Z
dd�Zdd�Ze
eed�dd��Ze
eed�dd��Ze
ed�dd��ZdS)�InstrumentationInfoz�Immutable information about an instrumentation library module.

    See `opentelemetry.trace.TracerProvider.get_tracer` for the meaning of these
    properties.
    ��_name�_version�_schema_urlz1.11.1z#You should use InstrumentationScope)�version�reasonN��namer
�
schema_urlcCs"||_||_|durd}||_dS�N�r��selfr
r
r�r�_/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/opentelemetry/sdk/util/instrumentation.py�__init__s
zInstrumentationInfo.__init__cCs(t|�j�d|j�d|j�d|j�d�S�N�(z, �)��type�__name__rrr	�rrrr�__repr__*s&�zInstrumentationInfo.__repr__cCst|j|j|jf�S�N��hashrrr	rrrr�__hash__/szInstrumentationInfo.__hash__cCs0t|�t|�uo.|j|j|jf|j|j|jfkSr)rrrr	�r�valuerrr�__eq__2s��zInstrumentationInfo.__eq__cCs4t|�t|�urtS|j|j|jf|j|j|jfkSr)r�NotImplementedrrr	r"rrr�__lt__9s�zInstrumentationInfo.__lt__��returncCs|jSr�r	rrrrrBszInstrumentationInfo.schema_urlcCs|jSr�rrrrrr
FszInstrumentationInfo.versioncCs|jSr�rrrrrr
JszInstrumentationInfo.name)NN)r�
__module__�__qualname__�__doc__�	__slots__r�strrrrr!r$r&�propertyrr
r
rrrrrs(
��	rc@s�eZdZdZdZdeeeeedd�dd�Zed�dd	�Ze	d�d
d�Z
eed�d
d�Z
eed�dd�Zeeed�dd��Zeeed�dd��Zeed�dd��Zded�dd�ZdS)�InstrumentationScopez�A logical unit of the application code with which the emitted telemetry can be
    associated.

    See `opentelemetry.trace.TracerProvider.get_tracer` for the meaning of these
    properties.
    rN)r
r
rr(cCs"||_||_|durd}||_dSrrrrrrrYs
zInstrumentationScope.__init__r'cCs(t|�j�d|j�d|j�d|j�d�Srrrrrrres&�zInstrumentationScope.__repr__cCst|j|j|jf�Srrrrrrr!jszInstrumentationScope.__hash__)r#r(cCs.t|t�stS|j|j|jf|j|j|jfkSr��
isinstancer2r%rrr	r"rrrr$ms
�zInstrumentationScope.__eq__cCs.t|t�stS|j|j|jf|j|j|jfkSrr3r"rrrr&vs
�zInstrumentationScope.__lt__cCs|jSrr)rrrrrszInstrumentationScope.schema_urlcCs|jSrr*rrrrr
�szInstrumentationScope.versioncCs|jSrr+rrrrr
�szInstrumentationScope.name�cCst|j|j|jd�|d�S)Nr)�indent)rrrr	)rr6rrr�to_json�s��zInstrumentationScope.to_json)NN)r5)rr,r-r.r/r0rrr�intr!�object�boolr$r&r1rr
r
r7rrrrr2Os*��		r2N)�jsonr�typingrrrr2rrrr�<module>s;