Skip to content

Code review sweep (run 25185529106)#18460

Merged
trask merged 8 commits into
mainfrom
otelbot/code-review-sweep-25185529106
Apr 30, 2026
Merged

Code review sweep (run 25185529106)#18460
trask merged 8 commits into
mainfrom
otelbot/code-review-sweep-25185529106

Conversation

@otelbot

@otelbot otelbot Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:

  • hibernate-common-3.3:javaagent
  • jedis-common-1.4:javaagent
  • jms-common-1.1:bootstrap
  • jms-common-1.1:javaagent
  • jms-common-1.1:javaagent-unit-tests
  • jodd-http-4.2:javaagent-unit-tests
  • jsf-common-jakarta:javaagent
  • jsf-common-jakarta:testing
  • jsf-common-javax:javaagent
  • jsf-common-javax:testing
  • jsf-mojarra-1.2:javaagent
  • jsf-mojarra-3.0:javaagent
  • jsf-myfaces-1.2:javaagent
  • jsf-myfaces-3.0:javaagent
  • jsp-2.3:javaagent
  • kafka-clients-0.11:bootstrap

Module: hibernate-common-3.3:javaagent

Module path: instrumentation/hibernate/hibernate-common-3.3/javaagent

Summary

No safe repository-guideline fixes were applied after reviewing all files under instrumentation/hibernate/hibernate-common-3.3/javaagent; the shared hibernate config is covered by the versioned metadata.yaml files and the common public helper types are used from sibling javaagent packages.

Applied Changes

No safe automated changes were applied.

Module: jedis-common-1.4:javaagent

Module path: instrumentation/jedis/jedis-common-1.4/javaagent

Summary

No safe repository-guideline fixes were found in instrumentation/jedis/jedis-common-1.4/javaagent; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: jms-common-1.1:bootstrap

Module path: instrumentation/jms/jms-common-1.1/bootstrap

Summary

No safe repository-guideline fixes were applied after reviewing instrumentation/jms/jms-common-1.1/bootstrap; the scoped build.gradle.kts and JmsReceiveContextHolder already conform to the loaded style, Gradle, nullability, and mandatory metadata review guidance.

Applied Changes

No safe automated changes were applied.

Module: jms-common-1.1:javaagent

Module path: instrumentation/jms/jms-common-1.1/javaagent

Summary

Applied safe repository-guideline fixes for instrumentation/jms/jms-common-1.1/javaagent and committed them in 77ec78c9.

Applied Changes

Style

File: JmsInstrumenterFactory.java:58
Change: Replaced `MessagePropertySetter.INSTANCE` with `new MessagePropertySetter()` when building the producer instrumenter.
Reason: Repository singleton guidance prefers direct instance creation for stateless telemetry interface implementations such as `TextMapSetter` when used during instrumenter initialization.

File: MessagePropertySetter.java:14
Change: Converted `MessagePropertySetter` from an enum singleton to a package-private class.
Reason: Repository singleton guidance says stateless `TextMapSetter` implementations should not use enum or `INSTANCE` singleton patterns unless needed on a hot path.

Module: jms-common-1.1:javaagent-unit-tests

Module path: instrumentation/jms/jms-common-1.1/javaagent-unit-tests

Summary

No safe repository-guideline fixes were applied under instrumentation/jms/jms-common-1.1/javaagent-unit-tests; reviewed scoped files and mandatory JMS metadata.yaml entries without finding deterministic issues.

Applied Changes

No safe automated changes were applied.

Module: jodd-http-4.2:javaagent-unit-tests

Module path: instrumentation/jodd-http-4.2/javaagent-unit-tests

Summary

No safe repository-guideline fixes were found in instrumentation/jodd-http-4.2/javaagent-unit-tests; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: jsf-common-jakarta:javaagent

Module path: instrumentation/jsf/jsf-common-jakarta/javaagent

Summary

No safe repository-guideline fixes were found in instrumentation/jsf/jsf-common-jakarta/javaagent; metadata.yaml coverage for the related Jakarta JSF modules already matches the common experimental controller telemetry config.

Applied Changes

No safe automated changes were applied.

Module: jsf-common-jakarta:testing

Module path: instrumentation/jsf/jsf-common-jakarta/testing

Summary

No safe repository-guideline fixes were identified in instrumentation/jsf/jsf-common-jakarta/testing; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: jsf-common-javax:javaagent

Module path: instrumentation/jsf/jsf-common-javax/javaagent

Summary

No safe repository-guideline fixes were found in instrumentation/jsf/jsf-common-javax/javaagent; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: jsf-common-javax:testing

Module path: instrumentation/jsf/jsf-common-javax/testing

Summary

No safe in-scope fixes were applied after reviewing instrumentation/jsf/jsf-common-javax/testing; the target files matched the loaded style, testing, and Gradle guidelines.

Applied Changes

No safe automated changes were applied.

Unresolved Items

File: metadata.yaml
Reason: Mandatory `metadata.yaml` validation found `otel.instrumentation.common.experimental.controller-telemetry.enabled` is missing `declarative_name: java.common.controller_telemetry/development.enabled`; not changed because it is outside the requested `instrumentation/jsf/jsf-common-javax/testing` path.

Module: jsf-mojarra-1.2:javaagent

Module path: instrumentation/jsf/jsf-mojarra-1.2/javaagent

Summary

Applied and committed one safe repository-guideline fix: added the missing declarative config name for the JSF Mojarra 1.2 controller telemetry setting.

Applied Changes

Config

File: metadata.yaml:10
Change: Added `declarative_name: java.common.controller_telemetry/development.enabled` for `otel.instrumentation.common.experimental.controller-telemetry.enabled`.
Reason: `metadata-yaml-format.md` requires every instrumentation config entry to include the correct declarative YAML key; this matches the special mapping for `otel.instrumentation.common.experimental.controller-telemetry.enabled` and sibling JSF module metadata.

Unresolved Items

File: build.gradle.kts
Reason: Bounded muzzle `pass` ranges lack some `assertInverse.set(true)` entries per `gradle-conventions.md`, but adding them was not safe: `:muzzle` failed during configuration with duplicate generated muzzle configurations for existing overlapping `fail`/`pass` ranges. This needs a manual muzzle configuration or convention-plugin adjustment.

Module: jsf-mojarra-3.0:javaagent

Module path: instrumentation/jsf/jsf-mojarra-3.0/javaagent

Summary

Applied safe repository-guideline fixes to instrumentation/jsf/jsf-mojarra-3.0/javaagent/build.gradle.kts and committed them in 1867c1eb.

Applied Changes

Build

File: build.gradle.kts:10
Change: Moved `assertInverse.set(true)` immediately after `versions.set("[3,)")` and changed single-test-task configuration from `withType<Test>().configureEach` to `test`.
Reason: `gradle-conventions.md` requires `assertInverse.set(true)` immediately after `versions.set(...)` in muzzle pass blocks, and says single-test-task modules should use `tasks.test` for shared test JVM/system-property configuration; `latestDepTest` does not justify `withType<Test>().configureEach`.

Module: jsf-myfaces-1.2:javaagent

Module path: instrumentation/jsf/jsf-myfaces-1.2/javaagent

Summary

Applied and committed one safe repository-guideline fix for jsf-myfaces-1.2 javaagent; validation completed with :check, :check -PtestLatestDeps=true, :muzzle, and spotlessApply.

Applied Changes

Build

File: build.gradle.kts:10
Change: Moved `assertInverse.set(true)` immediately after `versions.set("[1.2,3)")` in the `muzzle` `pass` block.
Reason: `gradle-conventions.md` requires `assertInverse.set(true)` in javaagent muzzle `pass` blocks to appear immediately after `versions.set(...)` unless `skip(...)` is present.

Module: jsf-myfaces-3.0:javaagent

Module path: instrumentation/jsf/jsf-myfaces-3.0/javaagent

Summary

Applied one safe repository-guideline fix under instrumentation/jsf/jsf-myfaces-3.0/javaagent and committed it as 48705c83.

Applied Changes

Build

File: build.gradle.kts:41
Change: Changed test configuration from `withType<Test>().configureEach` to `test` for the module’s `jvmArgs`, `collectMetadata`, and `metadataConfig` settings.
Reason: The Gradle convention says single-test-task modules should use `tasks.test`; implicit `latestDepTest` does not justify `withType<Test>().configureEach`.

Module: jsp-2.3:javaagent

Module path: instrumentation/jsp-2.3/javaagent

Summary

Applied and committed one safe review fix for jsp-2.3 javaagent tests.

Applied Changes

Testing

File: JspSpanAssertions.java:34
Change: Made `EXPERIMENTAL_ATTRIBUTES` private and added `hasTotalAttributeCount(0)` when JSP experimental render-span attributes are disabled.
Reason: `testing-experimental-flags.md` says per-module experimental flags should be held in a `private static final` constant, and `testing-general-patterns.md` standardizes zero-attribute assertions on `hasTotalAttributeCount(0)`.

Module: kafka-clients-0.11:bootstrap

Module path: instrumentation/kafka/kafka-clients/kafka-clients-0.11/bootstrap

Summary

Applied and committed safe review fixes for the Kafka bootstrap helper: renamed setEnabled(...) to setWrappingEnabled(...) and updated all direct Kafka javaagent callers.

Applied Changes

Naming

File: KafkaClientsConsumerProcessTracing.java:17
Change: Renamed `setEnabled(boolean)` to `setWrappingEnabled(boolean)` to match the existing `wrappingEnabled` state and `isWrappingEnabled()` accessor.
Reason: Repository naming guidance expects `set*` methods to name the property they mutate; javaagent/bootstrap internals are not public API, so the API-deprecation guidance allows a direct rename with in-repo caller updates.

Javaagent

File: KafkaConsumerInstrumentation.java:73
Change: Updated calls from `KafkaClientsConsumerProcessTracing.setEnabled(...)` to `setWrappingEnabled(...)`.
Reason: The javaagent API-deprecation guidance says javaagent internals are not public API and direct in-repo callers should be updated in the same commit after an internal rename.

File: WorkerSinkTaskInstrumentation.java:42
Change: Updated calls from `KafkaClientsConsumerProcessTracing.setEnabled(...)` to `setWrappingEnabled(...)`.
Reason: The javaagent API-deprecation guidance says javaagent internals are not public API and direct in-repo callers should be updated in the same commit after an internal rename.

File: StreamThreadInstrumentation.java:34
Change: Updated calls from `KafkaClientsConsumerProcessTracing.setEnabled(...)` to `setWrappingEnabled(...)`.
Reason: The javaagent API-deprecation guidance says javaagent internals are not public API and direct in-repo callers should be updated in the same commit after an internal rename.


Download code review diagnostics

otelbot Bot added 7 commits April 30, 2026 20:34
Automated code review of instrumentation/jms/jms-common-1.1/javaagent.
Automated code review of instrumentation/jsf/jsf-mojarra-1.2/javaagent.
Automated code review of instrumentation/jsf/jsf-mojarra-3.0/javaagent.
Automated code review of instrumentation/jsf/jsf-myfaces-1.2/javaagent.
Automated code review of instrumentation/jsf/jsf-myfaces-3.0/javaagent.
Automated code review of instrumentation/jsp-2.3/javaagent.
Automated code review of instrumentation/kafka/kafka-clients/kafka-clients-0.11/bootstrap.
@otelbot otelbot Bot requested a review from a team as a code owner April 30, 2026 21:07
The preceding commit renamed setEnabled -> setWrappingEnabled but missed
callers in reactor-kafka-1.0, spring-kafka-2.7, and vertx-kafka-client-3.6.
@trask trask enabled auto-merge (squash) April 30, 2026 21:44
@trask trask merged commit f9fab4f into main Apr 30, 2026
93 checks passed
@trask trask deleted the otelbot/code-review-sweep-25185529106 branch April 30, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant