Repository URL to install this package:
Version:
0.1.2 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
opentelemetry
/
trace
/
__pycache__
/
status.cpython-311.pyc
|
---|
§ ×gë ã ó~ d dl Z d dlZd dlZ ej e¦ « Z G d de j ¦ « Z G d d¦ « ZdS )é Nc ó" e Zd ZdZdZ dZ dZdS )Ú StatusCodez@Represents the canonical set of status codes of a finished Span.r é é N)Ú__name__Ú __module__Ú__qualname__Ú__doc__ÚUNSETÚOKÚERROR© ó úA/tmp/pip-target-6culloxw/lib/python/opentelemetry/trace/status.pyr r s+ ØJÐJà EØà BØrà EØ*Ð*r r c óÎ e Zd ZdZej dfdedej e fdZ e defd¦ « Ze dej e fd¦ « Ze 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¦ « d S |t j urt 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__zStatus.__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 zStatus.status_code@ ó ð Ô Ð r c ó | j S )zStatus description)r r s r r zStatus.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_okzStatus.is_okJ s ð }ÐB Ô 1µZ´]Ð BÐBr c ó( | j t j u S )z'Returns true if unset, false otherwise.)r r r r s r r$ zStatus.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ð!ð ðCtð 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