Skip to content

Add v3 preview config fallback#18936

Merged
laurit merged 2 commits into
open-telemetry:mainfrom
trask:fix-v3-preview-config-fallback
Jun 9, 2026
Merged

Add v3 preview config fallback#18936
laurit merged 2 commits into
open-telemetry:mainfrom
trask:fix-v3-preview-config-fallback

Conversation

@trask

@trask trask commented Jun 8, 2026

Copy link
Copy Markdown
Member

Make common.v3_preview fall back to otel.semconv-stability.v3-preview via ConfigPropertiesUtil when declarative config does not provide a value. This keeps v3 preview resolution consistent with the existing semconv stability opt_in and preview flags, which read declarative config first and fall back to system properties/environment variables.

Motivated by https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/18934/changes#r3373093942

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates semconv stability initialization to resolve the common.v3_preview flag from declarative config first, then fall back to the legacy otel.semconv-stability.v3-preview system property/env-var path to keep behavior consistent with existing semconv stability flags.

Changes:

  • Replaces direct common.v3_preview boolean-with-default lookup with a resolver that can detect “unset”.
  • Adds resolveV3Preview(...) to fall back to ConfigPropertiesUtil.getBoolean("otel.semconv-stability.v3-preview", false) when declarative config provides no value.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@trask trask marked this pull request as ready for review June 8, 2026 22:38
@trask trask requested a review from a team as a code owner June 8, 2026 22:38
@laurit laurit merged commit 5ae3062 into open-telemetry:main Jun 9, 2026
95 checks passed
zeitlinger added a commit to zeitlinger/opentelemetry-java-instrumentation that referenced this pull request Jun 9, 2026
Layered on top of open-telemetry#18936:
- New schema: <domain>.semconv.version (0/1) + dual_emit
- New top-level stability_opt_in_list config
- Precedence: domain schema > stability list > existing legacy fallback

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants