Skip to content

Move servlet-common internal package under servlet.common.internal#18855

Merged
trask merged 3 commits into
open-telemetry:mainfrom
trask:rename-servlet-common-internal
May 28, 2026
Merged

Move servlet-common internal package under servlet.common.internal#18855
trask merged 3 commits into
open-telemetry:mainfrom
trask:rename-servlet-common-internal

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented May 26, 2026

Aligns the internal package layout of the servlet-common library module with the module-name <-> package-name convention by relocating io.opentelemetry.instrumentation.servlet.internal to io.opentelemetry.instrumentation.servlet.common.internal.

These classes are marked internal (not part of the public API) and are consumed only by other instrumentation modules in this repository, so updating the import sites is sufficient.

Also drops the wholesale servlet-common module skip in the package-name checker, since the package layout now satisfies the prefix check via the existing no-base-version allow-list.

Aligns the internal package layout of the servlet-common library module with the module-name <-> package-name convention by relocating io.opentelemetry.instrumentation.servlet.internal to io.opentelemetry.instrumentation.servlet.common.internal.

These classes are marked internal (not part of the public API) and are consumed only by other instrumentation modules in this repository, so updating the import sites is sufficient.

Also drops the wholesale servlet-common module skip in the package-name checker, since the package layout now satisfies the prefix check via the existing no-base-version allow-list.
@trask trask marked this pull request as ready for review May 27, 2026 16:50
@trask trask requested a review from a team as a code owner May 27, 2026 16:50
Copilot AI review requested due to automatic review settings May 27, 2026 16:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Mechanical rename of the servlet-common library internal package from io.opentelemetry.instrumentation.servlet.internal to io.opentelemetry.instrumentation.servlet.common.internal, aligning it with the module-name/package-name convention (matching the analogous netty-common layout). The package-name checker is updated to drop the wholesale skip of servlet-common and include it in the no-base-version allow-list instead.

Changes:

  • Rename package declarations of 10 servlet-common internal classes.
  • Update all import sites across servlet, jetty, liberty, and tomcat instrumentation modules.
  • Update .github/scripts/check-package-names.sh to remove the servlet-common skip and add it to the no-base-version allow-list.

Reviewed changes

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

Show a summary per file
File Description
servlet-common/library/.../internal/*.java (10 files) Updated package declarations to new servlet.common.internal path
servlet-common/javaagent/.../*.java (5 files) Updated imports to new package
servlet-common-javax/.../JavaxServletAccessor.java Updated import
servlet-3.0/library + javaagent/.../*.java (5 files) Updated imports
servlet-5.0/library + javaagent/.../*.java (5 files) Updated imports
servlet-2.2/javaagent/.../*.java (6 files) Updated imports
jetty-common-8.0, jetty-8.0, jetty-11.0 (5 files) Updated imports
liberty-20.0 (4 files) Updated imports
tomcat-common-7.0/.../TomcatInstrumenterFactory.java Updated imports
.github/scripts/check-package-names.sh Removed servlet-common skip, added to no-base-version allow-list

@trask trask enabled auto-merge (squash) May 28, 2026 14:12
@trask trask merged commit 3f86ad6 into open-telemetry:main May 28, 2026
95 checks passed
@trask trask deleted the rename-servlet-common-internal branch May 28, 2026 14:37
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