
    Ki	                     ~    S SK r S SKrS SKr\R                  " \5      r " S S\ R                  5      r " S S5      rg)    Nc                   (    \ rS rSrSrSr Sr SrSrg)
StatusCode   z@Represents the canonical set of status codes of a finished Span.r          N)	__name__
__module____qualname____firstlineno____doc__UNSETOKERROR__static_attributes__r       \/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/opentelemetry/trace/status.pyr   r      s    JE	
BrE*r   r   c                       \ rS rSrSr\R                  S4S\S\R                  \	   4S jjr
\S\4S j5       r\S\R                  \	   4S	 j5       r\S\4S
 j5       r\S\4S j5       rSrg)Status#   zRepresents 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                     Xl         S U l        U(       aT  [        U[        5      (       d  [        R                  S5        g U[        R                  La  [        R                  S5        g X l        g )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warningr   r   )selfr   r   s      r   __init__Status.__init__,   sZ    
 ( k3//NO*"2"22` 'r   returnc                     U R                   $ )z8Represents the canonical status code of a finished Span.)r   r    s    r   r   Status.status_code@           r   c                     U R                   $ )zStatus description)r   r%   s    r   r   Status.descriptionE   r'   r   c                 `    U R                   =(       d    U R                  [        R                  L $ )z:Returns false if this represents an error, true otherwise.)is_unsetr   r   r   r%   s    r   is_okStatus.is_okJ   s"     }}B 1 1Z]] BBr   c                 :    U R                   [        R                  L $ )z'Returns true if unset, false otherwise.)r   r   r   r%   s    r   r+   Status.is_unsetO   s       J$4$444r   )r   r   )r	   r
   r   r   r   r   r   typingOptionalr   r!   propertyr   r   boolr,   r+   r   r   r   r   r   r   #   s     #-"2"2,0(( __S)(( !Z ! ! !V__S1 ! ! Ct C C 5$ 5 5r   r   )	enumloggingr0   	getLoggerr	   r   Enumr   r   r   r   r   <module>r8      s:      			8	$
+ 
+/5 /5r   