Skip to content

Tracking package and module name alignment#18428

Draft
trask wants to merge 10 commits into
open-telemetry:mainfrom
trask:next
Draft

Tracking package and module name alignment#18428
trask wants to merge 10 commits into
open-telemetry:mainfrom
trask:next

Conversation

@trask

@trask trask commented Apr 30, 2026

Copy link
Copy Markdown
Member

No description provided.

@trask trask requested a review from a team as a code owner April 30, 2026 01:39
@trask trask marked this pull request as draft April 30, 2026 02:19
@trask trask changed the title Validate javaagent source set in check-package-names.sh Tracking package and module name alignment Apr 30, 2026
@trask trask force-pushed the next branch 2 times, most recently from 89e469d to de7e738 Compare April 30, 2026 23:00
@trask trask mentioned this pull request May 5, 2026
trask added 10 commits June 2, 2026 15:44
…t source sets

Extracts a check_source_set function and runs it for both library and
javaagent source roots. Previously only library/ was validated.

This adds enforcement for javaagent module/package naming and produces
explicit allow-lists for the historical exceptions and the no-base-version
common modules.
PR 29 (oshi -> oshi-5.0) and PR 30 (elasticsearch-transport-common -> elasticsearch-transport-common-5.0) landed upstream together as open-telemetry#18854. Remove their now-stale unversioned-module allowlist entries from the checker and mark the corresponding plan sections as merged.
…mon}

Their package layout already matches the module-name <-> package-name convention (jaxrs/v2_0/annotations, jaxrs/v2_0/common, jaxrs/v3_0/annotations, jaxrs/v3_0/common). Only the digit-suffix module-name guard fails because the version is embedded mid-name, so move them from the historical wildcard case to the no-base-version case where the package layout is still validated.
…open-telemetry#18855

PR 17 (akka-actor-fork-join-2.5 -> akka-actor-forkjoin-2.5 and scala-fork-join-2.8 -> scala-forkjoin-2.8) landed upstream as open-telemetry#18772. open-telemetry#18855 moved the servlet-common library internal package from io.opentelemetry.instrumentation.servlet.internal to io.opentelemetry.instrumentation.servlet.common.internal. Remove their now-stale checker carveouts and mark the corresponding plan sections as merged.
Keep the existing package layout for the four self-instrumentation modules (opentelemetry-api-1.0, opentelemetry-extension-annotations-1.0, opentelemetry-instrumentation-annotations-1.16, opentelemetry-instrumentation-api) instead of renaming them under .opentelemetry.* as PR 14 / open-telemetry#18747 proposed. Promote them in the checker from a generic historical wildcard to a dedicated self-instrumentation case block with a comment explaining why the standard module-name <-> package-name convention does not apply. The javaagent:opentelemetry-instrumentation-api unversioned-module allowlist entry was removed at the same time because the new case block already short-circuits before the unversioned check.
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.

1 participant