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/trace/__pycache__/status.cpython-39.pyc
a

�,�h�	�@sFddlZddlZddlZe�e�ZGdd�dej�ZGdd�d�ZdS)�Nc@seZdZdZdZdZdZdS)�
StatusCodez@Represents the canonical set of status codes of a finished Span.r��N)�__name__�
__module__�__qualname__�__doc__�UNSET�OK�ERROR�rr�S/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/opentelemetry/trace/status.pyrs
rc@s|eZdZdZejdfeejed�dd�Z	e
ed�dd��Ze
ejed�d	d
��Ze
e
d�dd��Ze
e
d�d
d��ZdS)�Statusz�Represents the status of a finished Span.

    Args:
        status_code: The canonical status code that describes the result
            status of the operation.
        description: An optional description of the status.
    N)�status_code�descriptioncCsJ||_d|_|r@t|t�s(t�d�dS|tjur@t�d�dS||_dS)Nz-Invalid status description type, expected strzJdescription should only be set when status_code is set to StatusCode.ERROR)�_status_code�_description�
isinstance�str�logger�warningrr)�selfrrrrr
�__init__,s


�zStatus.__init__)�returncCs|jS)z8Represents the canonical status code of a finished Span.)r�rrrr
r@szStatus.status_codecCs|jS)zStatus description)rrrrr
rEszStatus.descriptioncCs|jp|jtjuS)z:Returns false if this represents an error, true otherwise.)�is_unsetrrr
rrrr
�is_okJszStatus.is_okcCs|jtjuS)z'Returns true if unset, false otherwise.)rrr	rrrr
rOszStatus.is_unset)rrrrrr	�typing�Optionalrr�propertyrr�boolrrrrrr
r#s
��r)	�enum�loggingr�	getLoggerrr�Enumrrrrrr
�<module>s