� ���g� ��~�ddlZddlZddlZeje��ZGd�dej��ZGd�d��ZdS)�Nc�"�eZdZdZdZ dZ dZdS)� StatusCodez@Represents the canonical set of status codes of a finished Span.r��N)�__name__� __module__� __qualname__�__doc__�UNSET�OK�ERROR���j/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/opentelemetry/trace/status.pyrrs+������J�J� �E�� �B�r� �E�*�*rrc���eZdZdZejdfdedejefd�Z e defd���Z e dejefd���Z e de fd ���Ze de fd ���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� descriptionc���||_d|_|r[t|t��st�d��dS|t jurt�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 )�selfrrs r�__init__zStatus.__init__,s��� (��� ��� � ��k�3�/�/� ����N�O�O�O����*�"2�2�2����`������'����r�returnc��|jS)z8Represents the canonical status code of a finished Span.)r�rs rrzStatus.status_code@� ��� � rc��|jS)zStatus description)rr s rrzStatus.descriptionEr!rc�6�|jp|jtjuS)z:Returns false if this represents an error, true otherwise.)�is_unsetrrr r s r�is_okz Status.is_okJs���}�B�� 1�Z�]� B�Brc�(�|jtjuS)z'Returns true if unset, false otherwise.)rrr r s rr$zStatus.is_unsetOs��� �J�$4�4�4r)rrr r rr �typing�Optionalrr�propertyrr�boolr%r$rrrrr#s��������#-�"2�,0�(�(��(��_�S�)�(�(�(�(�(�!�Z�!�!�!��X�!��!�V�_�S�1�!�!�!��X�!��C�t�C�C�C��X�C��5�$�5�5�5��X�5�5�5rr) �enum�loggingr'� getLoggerrr�Enumrrrrr�<module>r/s��� � � � ����� � � � � �� �8� $� $�� +� +� +� +� +��� +� +� +�/5�/5�/5�/5�/5�/5�/5�/5�/5�/5r
Memory