Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Feb 8, 2026

Fixes #3363

Introduces environment variable OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN, defined as

Existing instrumentations that record exceptions as span events:

  • SHOULD introduce an environment variable OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN supporting 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.

Prototype at open-telemetry/opentelemetry-java-instrumentation#16049

@github-actions github-actions bot added the enhancement New feature or request label Feb 8, 2026
@trask trask changed the title Introduce OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN Introduce OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN Feb 8, 2026
@trask trask marked this pull request as ready for review February 8, 2026 22:03
@trask trask requested review from a team as code owners February 8, 2026 22:03
@lmolkova lmolkova moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Feb 9, 2026
@trask trask moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Ready to be Merged

Development

Successfully merging this pull request may close these issues.

Introduce OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN

3 participants