
     <i	                     ~    d dl Z d dlZd dlZ ej        e          Z G d de j                  Z G d d          ZdS )    Nc                   "    e Zd ZdZdZ	 dZ	 dZdS )
StatusCodez@Represents the canonical set of status codes of a finished Span.r         N)__name__
__module____qualname____doc__UNSETOKERROR     /Users/kimhansen/Desktop/03 Workspace/ceo-agents/chl-effectiveness/mcp-servers/whoop/.venv/lib/python3.11/site-packages/opentelemetry/trace/status.pyr   r      s+        JJE	
BrE**r   r   c                       e Zd ZdZej        dfdedej        e         fdZ	e
defd            Ze
dej        e         fd            Ze
defd	            Ze
defd
            ZdS )StatuszRepresents 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                    st                              d           d S |t          j        urt                              d           d S || _        d S )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__zStatus.__init__,   s    
 (  	k3// NOOO*"222`   'r   returnc                     | j         S )z8Represents the canonical status code of a finished Span.)r   r   s    r   r   zStatus.status_code@          r   c                     | j         S )zStatus description)r   r    s    r   r   zStatus.descriptionE   r!   r   c                 6    | j         p| j        t          j        u S )z:Returns false if this represents an error, true otherwise.)is_unsetr   r   r   r    s    r   is_okzStatus.is_okJ   s     }B 1Z] BBr   c                 (    | j         t          j        u S )z'Returns true if unset, false otherwise.)r   r   r   r    s    r   r$   zStatus.is_unsetO   s      J$444r   )r   r   r	   r
   r   r   typingOptionalr   r   propertyr   r   boolr%   r$   r   r   r   r   r   #   s         #-"2,0( (( _S)( ( ( (( !Z ! ! ! X! !V_S1 ! ! ! X! Ct C C C XC 5$ 5 5 5 X5 5 5r   r   )	enumloggingr'   	getLoggerr   r   Enumr   r   r   r   r   <module>r/      s      		8	$	$
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+/5 /5 /5 /5 /5 /5 /5 /5 /5 /5r   