Code review sweep (run 25137477817)#18422
Merged
Merged
Conversation
Automated code review of instrumentation/couchbase/couchbase-3.2/javaagent.
Automated code review of instrumentation/couchbase/couchbase-common-2.0/javaagent.
Automated code review of instrumentation/couchbase/couchbase-common/testing.
Automated code review of instrumentation/dropwizard/dropwizard-metrics-4.0/javaagent.
Automated code review of instrumentation/dropwizard/dropwizard-testing.
Automated code review of instrumentation/dropwizard/dropwizard-views-0.7/javaagent.
Automated code review of instrumentation/elasticsearch/elasticsearch-api-client-7.16/javaagent.
Automated code review of instrumentation/elasticsearch/elasticsearch-api-client-7.16/javaagent-unit-tests.
…-sweep-25137477817
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:
couchbase-3.1:tracing-opentelemetry-shadedcouchbase-3.2:javaagentcouchbase-3.2:tracing-opentelemetry-shadedcouchbase-3.4:javaagentcouchbase-3.4:tracing-opentelemetry-shadedcouchbase-common-2.0:javaagentcouchbase-common-2.0:javaagent-unit-testscouchbase-common:testingdropwizard-metrics-4.0:javaagentdropwizard:dropwizard-testingdropwizard-views-0.7:javaagentelasticsearch-api-client-7.16:javaagentelasticsearch-api-client-7.16:javaagent-unit-testsModule:
couchbase-3.1:tracing-opentelemetry-shadedModule path:
instrumentation/couchbase/couchbase-3.1/tracing-opentelemetry-shadedSummary
No safe repository-guideline fixes were applied. Reviewed
build.gradle.ktsunder the requested directory and validated the owningmetadata.yamlformat requirements; no deterministic issues were found.Applied Changes
No safe automated changes were applied.
Module:
couchbase-3.2:javaagentModule path:
instrumentation/couchbase/couchbase-3.2/javaagentSummary
Applied 1 safe repository-guideline fix under
instrumentation/couchbase/couchbase-3.2/javaagentand committed it as12aeeca4.Applied Changes
Javaagent
File:
CouchbaseInstrumentationModule.java:31Change: Changed the negated `hasClassesNamed()` landmark comment for `CoreTransactionRequest` from `removed in 3.4.0` to `added in 3.4.0` and placed it directly above the class string.
Reason: `classLoaderMatcher()` guidance requires negated exclusion landmarks inside `not(hasClassesNamed(...))` to document when the excluded class was `added`, and chained landmark comments must sit directly above the relevant class name string.
Module:
couchbase-3.2:tracing-opentelemetry-shadedModule path:
instrumentation/couchbase/couchbase-3.2/tracing-opentelemetry-shadedSummary
No safe repository-guideline fixes were applied. Reviewed tracked file
instrumentation/couchbase/couchbase-3.2/tracing-opentelemetry-shaded/build.gradle.kts; generatedbuild/artifacts were not modified, andmetadata.yamlrequired no config-format changes.Applied Changes
No safe automated changes were applied.
Module:
couchbase-3.4:javaagentModule path:
instrumentation/couchbase/couchbase-3.4/javaagentSummary
No safe repository-guideline fixes were applied under
instrumentation/couchbase/couchbase-3.4/javaagent; the reviewed files already conform to the applicable metadata, javaagent, Gradle, and test guidance.Applied Changes
No safe automated changes were applied.
Module:
couchbase-3.4:tracing-opentelemetry-shadedModule path:
instrumentation/couchbase/couchbase-3.4/tracing-opentelemetry-shadedSummary
No safe repository-guideline fixes were applied. Reviewed the tracked
tracing-opentelemetry-shaded/build.gradle.ktsfile and mandatorycouchbase-3.4/metadata.yaml; no deterministic issue was found.Applied Changes
No safe automated changes were applied.
Module:
couchbase-common-2.0:javaagentModule path:
instrumentation/couchbase/couchbase-common-2.0/javaagentSummary
Applied one safe repository-guideline fix in
couchbase-common-2.0javaagent and committed it as7a18f760.Applied Changes
Style
File:
CouchbaseQuerySanitizer.java:36Change: Renamed unused catch parameters from `e` to `ignored` in optional Couchbase class-probe catch blocks.
Reason: `knowledge/general-rules.md` catch-variable guidance says intentionally unused catch parameters should be named `ignored`.
Module:
couchbase-common-2.0:javaagent-unit-testsModule path:
instrumentation/couchbase/couchbase-common-2.0/javaagent-unit-testsSummary
No safe repository-guideline fixes were found in
instrumentation/couchbase/couchbase-common-2.0/javaagent-unit-tests; no files were changed.Applied Changes
No safe automated changes were applied.
Module:
couchbase-common:testingModule path:
instrumentation/couchbase/couchbase-common/testingSummary
Applied 1 safe repository-guideline fix in
couchbase-commontesting and committed it as7c8907d5.Applied Changes
Testing
File:
AbstractCouchbaseTest.java:32Change: Hoisted `otel.instrumentation.couchbase.experimental-span-attributes` into a shared `EXPERIMENTAL_ATTRIBUTES` constant and reused it from `includesExperimentalAttributes()`.
Reason: `testing-experimental-flags.md` requires experimental test flags to be read once through a per-class `EXPERIMENTAL_ATTRIBUTES` constant instead of duplicating inline `Boolean.getBoolean(...)` reads.
Unresolved Items
File:
AbstractCouchbaseAsyncClientTest.javaReason: The multi-exception `Future.get(timeout, unit)` test throws clauses were not changed because widening them to `throws Exception` failed `./gradlew :instrumentation:couchbase:couchbase-common:testing:check` with Error Prone `InterruptedExceptionSwallowed`; no compile-safe single checked exception type preserves the `InterruptedException` contract.
Module:
dropwizard-metrics-4.0:javaagentModule path:
instrumentation/dropwizard/dropwizard-metrics-4.0/javaagentSummary
Applied one safe review fix and committed it in
3bac4d68; the affected:instrumentation:dropwizard:dropwizard-metrics-4.0:javaagentchecks and finalspotlessApplycompleted.Applied Changes
Build
File:
build.gradle.kts:18Change: Replaced `tasks.withType<Test>().configureEach` with `tasks.test` for the single test task JVM argument.
Reason: `gradle-conventions.md` says single-test-task modules should use the simple `tasks.test` form; `withType<Test>().configureEach` is only justified when the module explicitly registers additional `Test` tasks.
Module:
dropwizard:dropwizard-testingModule path:
instrumentation/dropwizard/dropwizard-testingSummary
Applied one safe Gradle convention fix in
dropwizard-testing; one experimental-task wiring concern remains manual-only.Applied Changes
Build
File:
build.gradle.kts:31Change: Changed `tasks.withType<Test>().configureEach` to `tasks.test` for the existing JVM args configuration.
Reason: Gradle conventions prefer `tasks.test` in single-test-task modules; implicit `latestDepTest` does not justify `withType<Test>().configureEach`.
Unresolved Items
File:
build.gradle.ktsReason: `otel.instrumentation.common.experimental.controller-telemetry.enabled=true` is still enabled on the default `test` task without a dedicated `testExperimental` task; the review instructions classify missing `testExperimental` wiring as manual-only rather than an auto-fix.
Module:
dropwizard-views-0.7:javaagentModule path:
instrumentation/dropwizard/dropwizard-views-0.7/javaagentSummary
Applied 2 safe repository-guideline fixes under
instrumentation/dropwizard/dropwizard-views-0.7/javaagent.Applied Changes
Build
File:
build.gradle.kts:21Change: Changed `tasks.withType<Test>().configureEach` to `tasks.test` for module-wide test properties.
Reason: `gradle-conventions.md` says single-test-task modules should use `tasks.test`; implicit `latestDepTest` does not justify `withType<Test>().configureEach`.
Testing
File:
ViewRenderTest.java:62Change: Changed `testDoesNotCreateSpanWithoutParent()` from `throws InterruptedException, IOException` to a single `throws Exception` clause.
Reason: `testing-general-patterns.md` says `@Test` methods should declare at most one checked exception type.
Module:
elasticsearch-api-client-7.16:javaagentModule path:
instrumentation/elasticsearch/elasticsearch-api-client-7.16/javaagentSummary
Applied and committed safe review fixes for
elasticsearch-api-client-7.16javaagent.Applied Changes
Javaagent
File:
RestClientHttpClientInstrumentation.java:50Change: Annotated the `@Advice.Enter` `Scope` parameter as `@Nullable`.
Reason: Javaagent advice with `suppress = Throwable.class` can pass `null` from enter advice on suppressed failures; repository nullability guidance requires annotating concrete nullable flows.
Testing
File:
ElasticsearchClientTest.java:61Change: Stored the `RestClient` in a class field and closed it in `@AfterAll` cleanup.
Reason: Repository testing resource-cleanup guidance requires class-scoped resources created during setup to be cleaned up deterministically.
Module:
elasticsearch-api-client-7.16:javaagent-unit-testsModule path:
instrumentation/elasticsearch/elasticsearch-api-client-7.16/javaagent-unit-testsSummary
Applied safe repository-guideline fixes to
ElasticsearchEndpointMapTestand committed them.Applied Changes
Testing/Style
File:
ElasticsearchEndpointMapTest.java:26Change: Made `SEARCH_ENDPOINTS` immutable with `unmodifiableSet(...)`, replaced boolean/map-value assertions with direct AssertJ collection/map assertions, and asserted `observedParams` as the actual value.
Reason: The style guide reserves uppercase static fields for constant-like immutable values, and `testing-general-patterns.md` prefers direct AssertJ collection/map assertions over extracted `contains(...)` or `get(...)` values.
Download code review diagnostics