Skip to content

Gate Wicket resource span names on v3 preview#18775

Merged
trask merged 2 commits into
open-telemetry:mainfrom
trask:gate-wicket-resource-span-name-v3-preview
May 18, 2026
Merged

Gate Wicket resource span names on v3 preview#18775
trask merged 2 commits into
open-telemetry:mainfrom
trask:gate-wicket-resource-span-name-v3-preview

Conversation

@trask

@trask trask commented May 18, 2026

Copy link
Copy Markdown
Member

Realized #18312 is breaking change, so hiding it behind v3 preview flag cc @asvanberg

@trask trask added this to the v2.28.0 milestone May 18, 2026
@trask trask marked this pull request as ready for review May 18, 2026 03:02
@trask trask requested a review from a team as a code owner May 18, 2026 03:02
Copilot AI review requested due to automatic review settings May 18, 2026 03:02

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

This PR gates the Wicket resource span renaming behavior (introduced in #18312) behind the otel.instrumentation.common.v3-preview flag to avoid a breaking change in default span names.

Changes:

  • Gate ResourceReferenceRequestHandler-based route/span renaming on SemconvStability.v3Preview().
  • Update Wicket tests to assert the legacy vs v3-preview resource span name based on the flag.
  • Add Gradle testV3Preview tasks (and wire them into check) to run the Wicket test suites with v3-preview enabled.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
instrumentation/wicket-8.0/wicket8-testing/build.gradle.kts Adds a testV3Preview Gradle test task that enables the v3-preview flag and runs under check.
instrumentation/wicket-8.0/wicket10-testing/build.gradle.kts Same as above for the Wicket 10 test matrix.
instrumentation/wicket-8.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/wicket/v8_0/RequestHandlerExecutorInstrumentation.java Gates resource route/span renaming logic on the v3-preview flag.
instrumentation/wicket-8.0/common-testing/src/main/java/io/opentelemetry/javaagent/instrumentation/wicket/v8_0/AbstractWicketTest.java Adjusts resource span name assertion to match legacy vs v3-preview behavior.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@laurit laurit 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.

I think that placing this behind the v3 preview flag is probably an overkill, we could just document it in the release notes.

@trask trask merged commit 3754062 into open-telemetry:main May 18, 2026
95 checks passed
@trask trask deleted the gate-wicket-resource-span-name-v3-preview branch May 18, 2026 18:57
SylvainJuge pushed a commit to SylvainJuge/opentelemetry-java-instrumentation that referenced this pull request May 20, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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