Code review sweep (run 25256858815)#18516
Merged
Merged
Conversation
Automated code review of instrumentation/tomcat/tomcat-7.0/javaagent.
Automated code review of instrumentation/tomcat/tomcat-jdbc/javaagent.
Automated code review of instrumentation/twilio-6.6/javaagent.
Automated code review of instrumentation/undertow-1.4/bootstrap.
Automated code review of instrumentation/undertow-1.4/javaagent.
Automated code review of instrumentation/vertx/vertx-http-client/vertx-http-client-3.0/javaagent.
Automated code review of instrumentation/vertx/vertx-http-client/vertx-http-client-4.0/javaagent.
Automated code review of instrumentation/vertx/vertx-http-client/vertx-http-client-5.0/javaagent.
trask
approved these changes
May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:
tomcat-7.0:javaagenttomcat-common:javaagenttomcat-jdbc:javaagenttwilio-6.6:javaagentundertow-1.4:bootstrapundertow-1.4:javaagentvaadin-14.2:javaagentvaadin-14.2:testingvertx-http-client-3.0:javaagentvertx-http-client-4.0:javaagentvertx-http-client-5.0:javaagentModule:
tomcat-7.0:javaagentModule path:
instrumentation/tomcat/tomcat-7.0/javaagentSummary
Applied 2 safe repository-guideline fixes under
instrumentation/tomcat/tomcat-7.0/javaagentand committed them in2aa5c77e.Applied Changes
Build
File:
build.gradle.kts:37Change: Changed the test configuration block from `withType<Test>().configureEach` to `test`.
Reason: `gradle-conventions.md` says modules with only one explicit `Test` task should use `tasks.test`; `withType<Test>().configureEach` is reserved for modules that explicitly register additional `Test` tasks.
Javaagent
File:
Tomcat7InstrumentationModule.java:54Change: Removed `onThrowable = Throwable.class` from the return-only `@Advice.OnMethodExit` advice `attachResponse`.
Reason: `javaagent-advice-patterns.md` says return-only exit advice that only processes `@Advice.Return` and has no cleanup should omit `onThrowable` while keeping `suppress = Throwable.class`.
Module:
tomcat-common:javaagentModule path:
instrumentation/tomcat/tomcat-common/javaagentSummary
No safe repository-guideline fixes were needed under
instrumentation/tomcat/tomcat-common/javaagent; the scoped source andbuild.gradle.ktsalready match the applicable review rules checked.Applied Changes
No safe automated changes were applied.
Module:
tomcat-jdbc:javaagentModule path:
instrumentation/tomcat/tomcat-jdbc/javaagentSummary
Applied 1 safe metadata fix for
tomcat-jdbcand committed it. Left the existingassertInverse.set(true)exception unresolved because adding it made:instrumentation:tomcat:tomcat-jdbc:javaagent:muzzlefail on oldertomcat-jdbcversions that still pass muzzle.Applied Changes
Config
File:
metadata.yaml:8Change: Added `declarative_name: general.semconv_stability.opt_in` for `otel.semconv-stability.opt-in`.
Reason: `metadata-yaml-format.md` requires every config entry to include the declarative YAML path, and `otel.semconv-stability.opt-in` maps to `general.semconv_stability.opt_in`.
Unresolved Items
File:
build.gradle.ktsReason: Gradle conventions normally require `assertInverse.set(true)` for bounded muzzle ranges, but adding it caused `:instrumentation:tomcat:tomcat-jdbc:javaagent:muzzle` to fail because older `tomcat-jdbc` `7.0`/`8.0` artifacts unexpectedly pass muzzle. A manual version-boundary decision is needed before changing this exception.
Module:
twilio-6.6:javaagentModule path:
instrumentation/twilio-6.6/javaagentSummary
Applied one safe
twilio-6.6javaagent review fix and committed it inde462a3e.Applied Changes
Javaagent
File:
TwilioAsyncInstrumentation.java:82Change: Removed the static import of computed helper `TwilioSingletons.spanName(...)` and qualified the call at the usage site.
Reason: `javaagent-singletons-patterns.md` says `*Singletons` static imports should be limited to stored singleton accessors or constant-like fields; helper methods that perform work should remain qualified.
Module:
undertow-1.4:bootstrapModule path:
instrumentation/undertow-1.4/bootstrapSummary
Applied one safe repository-guideline fix in
instrumentation/undertow-1.4/bootstrapand committed it as514fd860.Applied Changes
Nullability
File:
KeyHolder.java:37Change: Added `@Nullable` to `KeyHolder.get(...)` because the backing `ConcurrentMap.get(...)` can return `null`.
Reason: Repository nullability guidance requires annotating return types when a method actually returns `null`; the concrete absent-key path returns `null` and the Undertow caller already handles it.
Module:
undertow-1.4:javaagentModule path:
instrumentation/undertow-1.4/javaagentSummary
Applied one safe repository-guideline fix in
undertow-1.4javaagent and committed it as40d87582.Applied Changes
Style
File:
EndSpanListener.java:14Change: Reduced `EndSpanListener` and its constructor from `public` to package-private.
Reason: The style guide requires minimal necessary visibility; this internal helper is not directly referenced from ByteBuddy advice methods and does not need `public` visibility.
Module:
vaadin-14.2:javaagentModule path:
instrumentation/vaadin-14.2/javaagentSummary
Reviewed
instrumentation/vaadin-14.2/javaagent; no safe fixes were applied, and the working tree is unchanged.Applied Changes
No safe automated changes were applied.
Unresolved Items
File:
build.gradle.ktsReason: `muzzle` `pass` ranges are missing `assertInverse.set(true)` per Gradle conventions, but adding it conflicts with existing explicit `fail` ranges for the same `com.vaadin:flow-server` artifact and causes duplicate generated `muzzle-AssertFail` configurations; this needs a manual build-convention decision.
Module:
vaadin-14.2:testingModule path:
instrumentation/vaadin-14.2/testingSummary
No safe repository-guideline fixes were found in
instrumentation/vaadin-14.2/testing. The modulemetadata.yamlentry forotel.instrumentation.common.experimental.controller-telemetry.enabledmatches the documented declarative config format and the consuming javaagent test module already applies the required Testcontainers build service.Applied Changes
No safe automated changes were applied.
Module:
vertx-http-client-3.0:javaagentModule path:
instrumentation/vertx/vertx-http-client/vertx-http-client-3.0/javaagentSummary
Applied and committed one safe review fix for
vertx-http-client-3.0javaagent.Applied Changes
Javaagent
File:
Vertx3HttpAttributesGetter.java:8Change: Reused `VertxClientSingletons.REQUEST_INFO` instead of declaring a duplicate `VirtualField` in `Vertx3HttpAttributesGetter`.
Reason: `javaagent-singletons-patterns.md` says exported uppercase constant-like fields such as `VirtualField` handles should be static-imported and used unqualified by callers.
Module:
vertx-http-client-4.0:javaagentModule path:
instrumentation/vertx/vertx-http-client/vertx-http-client-4.0/javaagentSummary
Applied 1 safe repository-guideline style fix in
vertx-http-client-4.0javaagentand committed it.Applied Changes
Style
File:
HandlerWrapper.java:33Change: Renamed the unused try-with-resources `Scope` variable from `ignore` to `ignored`.
Reason: Aligns with repository style guidance for intentionally unused identifiers and the established `Scope ignored = ...` pattern used by similar wrappers.
Module:
vertx-http-client-5.0:javaagentModule path:
instrumentation/vertx/vertx-http-client/vertx-http-client-5.0/javaagentSummary
Applied and committed safe review fixes for
vertx-http-client-5.0javaagent: simplified redundant ByteBuddy method matchers and added@AfterAllcleanup for the Vert.x test instance.Applied Changes
Javaagent
File:
HttpRequestInstrumentation.java:62Change: Removed redundant `isMethod()` from `transform()` method matchers that already match non-empty method names.
Reason: Repository review guideline says redundant `isMethod()` should be removed when a method matcher already names a specific non-empty method.
Testing
File:
VertxHttpClientTest.java:38Change: Kept the created `Vertx` instance in a field and closed it in `@AfterAll` after the inherited `AbstractHttpClientTest` `PER_CLASS` suite finishes.
Reason: Testing cleanup guidance requires long-lived test resources to be cleaned up at test end; `@AfterAll` is appropriate here because the resource is shared for the class lifecycle.
Download code review diagnostics