Skip to content

Add OTEL_INSTRUMENTATION_COMMON_V3_PREVIEW flag#16459

Merged
laurit merged 2 commits intoopen-telemetry:mainfrom
trask:v3-preview-flag
Mar 15, 2026
Merged

Add OTEL_INSTRUMENTATION_COMMON_V3_PREVIEW flag#16459
laurit merged 2 commits intoopen-telemetry:mainfrom
trask:v3-preview-flag

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Mar 12, 2026

This will allow us to start implementing misc breaking changes by hiding them behind this flag.

@trask trask marked this pull request as ready for review March 12, 2026 22:11
@trask trask requested a review from a team as a code owner March 12, 2026 22:11
commonConfig.get("logging").getString("span_id", LoggingContextConstants.SPAN_ID);
loggingTraceFlagsKey =
commonConfig.get("logging").getString("trace_flags", LoggingContextConstants.TRACE_FLAGS);
v3Preview = commonConfig.getBoolean("v3_preview", false);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

so will we auto-enable all the semconv stability opt-ins with this too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no, but that's a good idea

@@ -124,6 +125,9 @@ public CommonConfig(OpenTelemetry openTelemetry) {
loggingTraceFlagsKey =
commonConfig.get("logging").getString("trace_flags", LoggingContextConstants.TRACE_FLAGS);
v3Preview = commonConfig.getBoolean("v3_preview", false);
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.

I think that I would have omitted common from the property name, but it is fine this way too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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