Skip to content

Align 3.0 deprecation markers in javaagent-extension-api#18904

Merged
trask merged 1 commit into
open-telemetry:mainfrom
zeitlinger:codex/align-3-0-deprecation-markers
Jun 5, 2026
Merged

Align 3.0 deprecation markers in javaagent-extension-api#18904
trask merged 1 commit into
open-telemetry:mainfrom
zeitlinger:codex/align-3-0-deprecation-markers

Conversation

@zeitlinger

@zeitlinger zeitlinger commented Jun 5, 2026

Copy link
Copy Markdown
Member

Fixes #15806

What changed

  • added the missing deprecation-removal note to IgnoredTypesConfigurer#configure(IgnoredTypesBuilder, ConfigProperties)
  • normalized the javaagent-extension-api deprecation markers to the repo's more common 3.0 wording
  • updated existing 3.0.0 markers in the same module to 3.0

Why

Issue #15806 called out that IgnoredTypesConfigurer should have the same temporary removal marker comment used in other places.

While fixing that, this also aligns the nearby javaagent-extension-api code with the more common repository pattern:

  • @Deprecated // to be removed in 3.0
  • Javadoc Will be removed in 3.0.

Impact

No functional behavior change. This is a comment / deprecation-marker consistency cleanup that also makes the future 3.0 removal audit easier.

Validation

  • ./gradlew :javaagent-extension-api:compileJava

Follow-up

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger changed the title [codex] Align 3.0 deprecation markers in javaagent-extension-api Align 3.0 deprecation markers in javaagent-extension-api Jun 5, 2026
@zeitlinger zeitlinger marked this pull request as ready for review June 5, 2026 11:02
@zeitlinger zeitlinger requested a review from a team as a code owner June 5, 2026 11:02
Copilot AI review requested due to automatic review settings June 5, 2026 11: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 standardizes deprecation-removal markers within javaagent-extension-api to consistently use the repository’s common “3.0” wording, and adds the missing removal note for the deprecated IgnoredTypesConfigurer#configure(IgnoredTypesBuilder, ConfigProperties) overload.

Changes:

  • Added an explicit “Will be removed in 3.0.” note to the deprecated IgnoredTypesConfigurer overload Javadoc.
  • Normalized @Deprecated removal comments from “will be removed in 3.0.0” to “to be removed in 3.0” in javaagent-extension-api.
  • Updated the affected deprecation markers in the same module to align with the standardized wording.

Reviewed changes

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

File Description
javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/instrumentation/internal/V3PreviewFallbackEnabledInstrumentationModule.java Normalizes the deprecation removal marker to “to be removed in 3.0”.
javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/instrumentation/InstrumentationModule.java Updates the deprecated overload’s removal marker to the standardized “3.0” wording.
javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/ignore/IgnoredTypesConfigurer.java Adds the missing 3.0 removal note in Javadoc and aligns the @Deprecated removal marker comment.

@trask trask left a comment

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.

thanks!

@trask trask merged commit 1ba1731 into open-telemetry:main Jun 5, 2026
95 checks passed
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.

remove deprecated method that takes ConfigProperties from IgnoredTypesConfigurer

3 participants