Ë
    '<ç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y)é    Nc                   ó    — e Zd ZdZdZ	 dZ	 dZy)Ú
StatusCodez@Represents the canonical set of status codes of a finished Span.r   é   é   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚUNSETÚOKÚERROR© ó    ú€/home/jay/workspace/.worktrees/task-2057-dev2/scripts/.codegraph-venv/lib/python3.12/site-packages/opentelemetry/trace/status.pyr   r      s   „ Ù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y)Ú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 | _        |rNt        |t        «      st        j                  d«       y |t        j                  urt        j                  d«       y || _        y )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[   € ð
 (ˆÔØ ˆÔáÜ˜k¬3Ô/Ü—‘ÐNÔ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                 óV   — | j                   xs | 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 × 1Ñ 1´Z·]±]Ð 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Ð4Ð4r   )r   r   r	   r
   r   r   ÚtypingÚOptionalr   r   Úpropertyr   r   Úboolr%   r$   r   r   r   r   r   #   s­   „ ñð #-×"2Ñ"2Ø,0ñ(àð(ð —_‘_ SÑ)ó(ð( ð!˜Zò !ó ð!ð ð!˜VŸ_™_¨SÑ1ò !ó ð!ð ðCtò Có ðCð ð5˜$ò 5ó ñ5r   r   )	ÚenumÚloggingr'   Ú	getLoggerr   r   ÚEnumr   r   r   r   r   ú<module>r/      s<   ðó Û Û à	ˆ×	Ñ	˜8Ó	$€ô
+—‘ô 
+÷/5ò /5r   