You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Review SetStatus operation for a Span and identify all normative requirements it contains.
Validate our implementation of the specification to conform or not. If it conforms, document the conformity here. If it does not open an Issue or PR track the work.
The text was updated successfully, but these errors were encountered:
An API to set the Status.
This SHOULD be called SetStatus.
This API takes the StatusCode, and an optional Description, either as individual parameters or as an immutable object encapsulating them, whichever is most appropriate for the language. Description MUST be IGNORED for StatusCodeOk & Unset values.
The status code SHOULD remain unset, except for the following circumstances:
When the status is set to ERROR by Instrumentation Libraries, the status codes SHOULD be documented and predictable.
The status code should only be set to ERROR according to the rules defined within the semantic conventions.
For operations not covered by the semantic conventions, Instrumentation Libraries SHOULD publish their own conventions, including status codes.
Generally, Instrumentation Libraries SHOULD NOT set the status code to Ok, unless explicitly configured to do so.
Instrumention libraries SHOULD leave the status code as Unset unless there is an error, as described above.
Application developers and Operators may set the status code to Ok.
Analysis tools SHOULD respond to an Ok status by suppressing any errors they would otherwise generate.
For example, to suppress noisy errors such as 404s.
Only the value of the last call will be recorded, and implementations are free to ignore previous calls.
These requirements are for instrumentors, but as a sanity check:
The text was updated successfully, but these errors were encountered: