Code review sweep (run 25149644494)#18438
Merged
Merged
Conversation
Automated code review of instrumentation/http-url-connection/javaagent.
Automated code review of instrumentation/hystrix-1.4/javaagent.
Automated code review of instrumentation/iceberg-1.8/library.
Automated code review of instrumentation/internal/internal-application-logger/bootstrap.
Automated code review of instrumentation/internal/internal-application-logger/javaagent.
Automated code review of instrumentation/internal/internal-class-loader/javaagent.
Automated code review of instrumentation/internal/internal-class-loader/javaagent-integration-tests.
trask
approved these changes
Apr 30, 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:
http-url-connection:javaagenthystrix-1.4:javaagenticeberg-1.8:libraryiceberg-1.8:testinginfluxdb-2.4:javaagentinternal-application-logger:bootstrapinternal-application-logger:javaagentinternal-class-loader:compile-stubinternal-class-loader:javaagentinternal-class-loader:javaagent-integration-testsModule:
http-url-connection:javaagentModule path:
instrumentation/http-url-connection/javaagentSummary
Applied one safe review fix in
http-url-connectionjavaagent tests and committed it.Applied Changes
Testing
File:
HttpUrlConnectionTest.java:161Change: Replaced a no-argument `@ParameterizedTest` using `@ValueSource` with `@RepeatedTest(10)`.
Reason: JUnit `@ParameterizedTest` methods must consume supplied arguments; `@RepeatedTest` preserves the intended repeat behavior without invalid parameter resolution.
Module:
hystrix-1.4:javaagentModule path:
instrumentation/hystrix-1.4/javaagentSummary
Applied safe repository-guideline fixes in
instrumentation/hystrix-1.4/javaagentand committed them indbae8fa1.Applied Changes
Testing
File:
ExperimentalTestHelper.java:9Change: Removed shared non-semconv `AttributeKey` test constants and renamed the experimental flag field to `EXPERIMENTAL_ATTRIBUTES`.
Reason: `testing-general-patterns.md` says non-semconv attribute keys in test `equalTo(...)` assertions should use inline `AttributeKey` factory methods, and flag-gated experimental assertions should use an `EXPERIMENTAL_ATTRIBUTES` constant-style flag.
File:
HystrixObservableChainTest.java:96Change: Replaced shared `HYSTRIX_*` test attribute constants with inline `stringKey(...)` and `booleanKey(...)` calls in `equalTo(...)` assertions.
Reason: `testing-general-patterns.md` reserves class-level test `AttributeKey` constants for semconv keys and requires inline factory methods for non-semconv keys in `equalTo(...)`.
File:
HystrixObservableTest.java:86Change: Replaced shared `HYSTRIX_*` test attribute constants with inline `stringKey(...)` and `booleanKey(...)` calls in `equalTo(...)` assertions.
Reason: `testing-general-patterns.md` reserves class-level test `AttributeKey` constants for semconv keys and requires inline factory methods for non-semconv keys in `equalTo(...)`.
File:
HystrixTest.java:68Change: Replaced shared `HYSTRIX_*` test attribute constants with inline `stringKey(...)` and `booleanKey(...)` calls in `equalTo(...)` assertions.
Reason: `testing-general-patterns.md` reserves class-level test `AttributeKey` constants for semconv keys and requires inline factory methods for non-semconv keys in `equalTo(...)`.
Module:
iceberg-1.8:libraryModule path:
instrumentation/iceberg-1.8/librarySummary
Applied and committed one safe repository-guideline fix for
instrumentation/iceberg-1.8/library.Applied Changes
Style
File:
IcebergTelemetry.java:22Change: Added `requireNonNull` checks for the public entrypoint inputs used by `IcebergTelemetry`.
Reason: Repository style guidance says public APIs should defensively check non-`@Nullable` parameters for `null`.
Module:
iceberg-1.8:testingModule path:
instrumentation/iceberg-1.8/testingSummary
No safe repository-guideline fixes were applied under
instrumentation/iceberg-1.8/testing; the reviewablebuild.gradle.ktsandAbstractIcebergTestsource already conform to the loaded style, testing, and metadata guidelines.Applied Changes
No safe automated changes were applied.
Module:
influxdb-2.4:javaagentModule path:
instrumentation/influxdb-2.4/javaagentSummary
No safe repository-guideline fixes were applied for
instrumentation/influxdb-2.4/javaagent; the reviewed files andmetadata.yamldid not have deterministic in-scope issues that could be retained safely.Applied Changes
No safe automated changes were applied.
Module:
internal-application-logger:bootstrapModule path:
instrumentation/internal/internal-application-logger/bootstrapSummary
Applied one safe repository-guideline fix in
internal-application-loggerbootstrap and committed it.Applied Changes
Build
File:
build.gradle.kts:5Change: Removed the explicit `compileOnly(project(":javaagent-bootstrap"))` dependency from the `otel.javaagent-bootstrap` module.
Reason: `gradle-conventions.md` and the `otel.javaagent-bootstrap` convention plugin provide `:javaagent-bootstrap` automatically, so declaring it again is redundant dependency wiring.
Module:
internal-application-logger:javaagentModule path:
instrumentation/internal/internal-application-logger/javaagentSummary
Applied one safe Gradle convention fix in
internal-application-loggerjavaagent and committed it asa2e234ba.Applied Changes
Build
File:
build.gradle.kts:24Change: Removed the explicit `compileOnly(project(":javaagent-bootstrap"))` dependency.
Reason: `gradle-conventions.md` says javaagent modules must not declare `javaagent-bootstrap` explicitly because `otel.javaagent-instrumentation` already provides it transitively.
Unresolved Items
File:
build.gradle.ktsReason: The Spring Boot muzzle `pass` block still lacks `assertInverse.set(true)`, but adding it made `:instrumentation:internal:internal-application-logger:javaagent:muzzle` fail because pre-`1.2.0` Spring Boot versions unexpectedly pass muzzle; a safe fix would require an intentional version-boundary design, not an automatic review edit.
Module:
internal-class-loader:compile-stubModule path:
instrumentation/internal/internal-class-loader/compile-stubSummary
No safe fixes were applied. The requested target is under
compile-stub/, and the review guideline says stub modules must be skipped because their API shape must match the external class; parentmetadata.yamlhas no config entries or config usage requiring updates.Applied Changes
No safe automated changes were applied.
Module:
internal-class-loader:javaagentModule path:
instrumentation/internal/internal-class-loader/javaagentSummary
Applied 1 safe repository-guideline fix and committed it in
4cea6a7c.Applied Changes
Build
File:
build.gradle.kts:8Change: Removed the explicit `compileOnly(project(":javaagent-bootstrap"))` dependency.
Reason: `gradle-conventions.md` says javaagent modules must not declare `javaagent-bootstrap` explicitly because `otel.javaagent-instrumentation` already provides it on the `compileOnly` classpath.
Module:
internal-class-loader:javaagent-integration-testsModule path:
instrumentation/internal/internal-class-loader/javaagent-integration-testsSummary
Applied and committed one safe repository-guideline fix in
javaagent-integration-tests: removed a redundant type-level classloader optimization from a name-only matcher.Applied Changes
Javaagent
File:
TestInstrumentationModule.java:44Change: Removed `classLoaderOptimization()` and the now-unused `hasClassesNamed` import from `TestTypeInstrumentation`.
Reason: `javaagent-module-patterns.md` says `classLoaderOptimization()` is only needed for expensive hierarchy or annotation matchers; `typeMatcher()` uses a cheap `named(...)` matcher, so the extra optimization is redundant.
Download code review diagnostics