Code review sweep (run 25245621016)#18507
Merged
Merged
Conversation
Automated code review of instrumentation/spring/spring-jms/spring-jms-2.0/javaagent.
Automated code review of instrumentation/spring/spring-jms/spring-jms-2.0/testing.
Automated code review of instrumentation/spring/spring-jms/spring-jms-6.0/javaagent.
Automated code review of instrumentation/spring/spring-kafka-2.7/javaagent.
Automated code review of instrumentation/spring/spring-kafka-2.7/testing.
Automated code review of instrumentation/spring/spring-pulsar-1.0/javaagent.
Automated code review of instrumentation/spring/spring-pulsar-1.0/testing.
Automated code review of instrumentation/spring/spring-rmi-4.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:
spring-jms-2.0:javaagentspring-jms-2.0:testingspring-jms-6.0:javaagentspring-kafka-2.7:javaagentspring-kafka-2.7:libraryspring-kafka-2.7:testingspring-pulsar-1.0:javaagentspring-pulsar-1.0:testingspring-rabbit-1.0:javaagentspring-rmi-4.0:javaagentModule:
spring-jms-2.0:javaagentModule path:
instrumentation/spring/spring-jms/spring-jms-2.0/javaagentSummary
Applied one safe repository-guideline fix in
spring-jms-2.0javaagent and committed it.Applied Changes
Style
File:
SpringTemplateTest.java:59Change: Moved `MESSAGE_TEXT` before mutable static fields.
Reason: Repository style guide class organization requires `static final` fields before non-final static fields.
Module:
spring-jms-2.0:testingModule path:
instrumentation/spring/spring-jms/spring-jms-2.0/testingSummary
Applied and committed one safe repository-guideline fix in
spring-jms-2.0/testing.Applied Changes
Style
File:
AbstractJmsTest.java:29Change: Moved duplicate `@SuppressWarnings("deprecation")` annotations from two methods to class scope while preserving the `using deprecated semconv` explanation.
Reason: `knowledge/general-rules.md` says `@SuppressWarnings` should be placed on the class when two or more members need the same suppression, and explanatory suppression comments should be preserved.
Module:
spring-jms-6.0:javaagentModule path:
instrumentation/spring/spring-jms/spring-jms-6.0/javaagentSummary
Applied and committed one safe repository-guideline fix for
spring-jms-6.0javaagent.Applied Changes
Style
File:
AbstractSpringJmsListenerTest.java:33Change: Restricted the `logger` and `broker` static fields to `private` visibility.
Reason: Repository style guide requires minimal necessary visibility and says static fields should be `private` unless they are constant-like exported fields.
Module:
spring-kafka-2.7:javaagentModule path:
instrumentation/spring/spring-kafka-2.7/javaagentSummary
Applied safe repository-guideline fixes for
spring-kafka-2.7javaagentand committed them.Applied Changes
Build
File:
build.gradle.kts:80Change: Updated `metadataConfig` for `testExperimental` to include both experimental JVM args and added `metadataConfig` to the default `test` task for receive telemetry.
Reason: Gradle conventions require existing `metadataConfig` values to describe the non-default configuration active in each `Test` task.
Javaagent
File:
ListenerConsumerInstrumentation.java:92Change: Renamed `AdviceScope.enter()`/`exit()` to `start()`/`end()` and updated call sites.
Reason: Javaagent advice guidance uses `start()` and `end()` as the canonical `AdviceScope` method names for ordinary tracing advice.
Testing
File:
SpringKafkaTest.java:63Change: Renamed the experimental test flag constant from `EXPERIMENTAL_ATTRIBUTES_ENABLED` to `EXPERIMENTAL_ATTRIBUTES`.
Reason: Testing guidance standardizes experimental attribute mode checks on a per-module `EXPERIMENTAL_ATTRIBUTES` constant.
Module:
spring-kafka-2.7:libraryModule path:
instrumentation/spring/spring-kafka-2.7/librarySummary
No safe repository-guideline fixes were applied under
instrumentation/spring/spring-kafka-2.7/library; the only deterministic style candidate conflicted with existingspotlessJavaformatting and was reverted.Applied Changes
No safe automated changes were applied.
Module:
spring-kafka-2.7:testingModule path:
instrumentation/spring/spring-kafka-2.7/testingSummary
Applied safe review fixes for
spring-kafka-2.7testing by removing a shared non-semconvAttributeKeyconstant and inliningstringKey("messaging.client_id")at assertion sites.Applied Changes
Testing
File:
AbstractSpringKafkaTest.java:37Change: Removed the shared `MESSAGING_CLIENT_ID` `AttributeKey` constant and its now-unused import.
Reason: `testing-general-patterns.md` says non-semconv attribute keys in test assertions should use inline `AttributeKey` factory methods; constants are reserved for semconv keys.
File:
SpringKafkaTest.java:96Change: Replaced `MESSAGING_CLIENT_ID` assertion references with inline `stringKey("messaging.client_id")`.
Reason: Required compile-ready caller update after removing the shared test fixture constant, and aligns assertions with `testing-general-patterns.md` guidance for non-semconv attribute keys.
Module:
spring-pulsar-1.0:javaagentModule path:
instrumentation/spring/spring-pulsar-1.0/javaagentSummary
Applied and committed safe review fixes for
spring-pulsar-1.0javaagenttest metadata configuration.Applied Changes
Build
File:
build.gradle.kts:54Change: Added `metadataConfig` system properties for the non-default `testReceiveSpansDisabled` suite and default `test` task.
Reason: Repository Gradle conventions require existing `collectMetadata` wiring to pair each non-default test configuration with matching `metadataConfig`, so metadata collection records the active `otel.instrumentation.*` flags.
Module:
spring-pulsar-1.0:testingModule path:
instrumentation/spring/spring-pulsar-1.0/testingSummary
Applied one safe repository-guideline fix in
spring-pulsar-1.0testingand committed it as3b6964fb.Applied Changes
Style
File:
AbstractSpringPulsarTest.java:68Change: Changed `brokerHost` and `brokerPort` from `protected static` to `private static`.
Reason: Repository style guide requires minimal necessary visibility; these fields are only used inside `AbstractSpringPulsarTest`.
Module:
spring-rabbit-1.0:javaagentModule path:
instrumentation/spring/spring-rabbit-1.0/javaagentSummary
Reviewed all files under
instrumentation/spring/spring-rabbit-1.0/javaagent; no safe repository-guideline fixes were needed.Applied Changes
No safe automated changes were applied.
Module:
spring-rmi-4.0:javaagentModule path:
instrumentation/spring/spring-rmi-4.0/javaagentSummary
Applied one safe repository-guideline fix in
spring-rmi-4.0javaagent: removed unused AutoValue dependency declarations frombuild.gradle.kts.Applied Changes
Build
File:
build.gradle.kts:16Change: Removed unused `compileOnly("com.google.auto.value:auto-value-annotations")` and `annotationProcessor("com.google.auto.value:auto-value")` dependency declarations.
Reason: `gradle-conventions.md` says to flag/remove dependencies that appear unused or redundant; no module source references `AutoValue` or generated AutoValue types.
Download code review diagnostics