Semantic conventions for exceptions
Status: Stable
Important
Existing instrumentations that record exceptions as span events:
- SHOULD introduce an environment variable
OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_INsupporting the following values:logs- emit exceptions as logs only.logs/dup- emit both span events and logs, allowing for a phased rollout.- The default behavior (in the absence of one of these values) is to continue emitting exceptions as span events (existing behavior).
- SHOULD maintain (security patching at a minimum) their existing major version for at least six months after it starts emitting both sets of conventions.
- MAY drop the environment variable in their next major version and emit exceptions as logs only.
Even after instrumentations start emitting exceptions only as logs, users will still have the option to route those to span events at the SDK layer.
Semantic conventions for Exceptions are defined for the following signals:
- Exceptions on spans: Semantic Conventions for Exceptions recorded on spans (deprecated).
- Exceptions in logs: Semantic Conventions for Exceptions recorded in logs.
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!