xjvddlZddlZejeZGddej ZGddZy)Nc eZdZdZdZ dZ dZy) StatusCodez@Represents the canonical set of status codes of a finished Span.rN)__name__ __module__ __qualname____doc__UNSETOKERRORn/mnt/ssd/data/Dropbox/adrian/sandbox/mcp-query/venv/lib/python3.12/site-packages/opentelemetry/trace/status.pyrr sJ E Br E*rrceZdZdZej dfdededzfdZedefdZ ededzfdZ ede fd Z ede fd Z y) 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|_|rNt|tstj dy|t jurtj dy||_y)Nz-Invalid status description type, expected strzJdescription should only be set when status_code is set to StatusCode.ERROR) _status_code _description isinstancestrloggerwarningrr )selfrrs r__init__zStatus.__init__ s[ (  k3/NO*"2"22`'rreturnc|jS)z8Represents the canonical status code of a finished Span.)rrs rrzStatus.status_code4   rc|jS)zStatus description)rr s rrzStatus.description9r!rcV|jxs|jtjuS)z:Returns false if this represents an error, true otherwise.)is_unsetrrr r s ris_okz Status.is_ok>s"}}B 1 1Z]] BBrc:|jtjuS)z'Returns true if unset, false otherwise.)rrr r s rr$zStatus.is_unsetCs  J$4$444r)rrr r rr rrpropertyrrboolr%r$rrrrrs#-"2"2"&((4Z((!Z!!!S4Z!!CtCC5$55rr)enumlogging getLoggerrrEnumrrrrrr-s9    8 $ + +/5/5r