Skip to content

Review fixes for jsp-2.3:javaagent#18129

Merged
trask merged 1 commit into
mainfrom
otelbot/code-review-jsp-2.3-javaagent
Apr 22, 2026
Merged

Review fixes for jsp-2.3:javaagent#18129
trask merged 1 commit into
mainfrom
otelbot/code-review-jsp-2.3-javaagent

Conversation

@otelbot

@otelbot otelbot Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Applied safe review fixes in instrumentation/jsp-2.3: added the missing declarative_name coverage in metadata.yaml and tightened test-helper visibility/style in the javaagent test support classes.

Applied Changes

Config

File: metadata.yaml:9
Change: Added declarative_name entries for otel.instrumentation.common.experimental.view-telemetry.enabled and otel.instrumentation.jsp.experimental-span-attributes.
Reason: metadata-yaml-format.md requires every instrumentation metadata.yaml config entry to declare the correct declarative mapping, and both entries were already used by the module code.

Style

File: JspSpan.java:21
Change: Reduced the helper bean accessors and mutators from public to package-private.
Reason: The style guide requires minimal necessary visibility; this test-only helper is package-scoped and only used within the same package.

File: JspSpanAssertionBuilder.java:21
Change: Reduced the builder methods from public to package-private.
Reason: The style guide requires minimal necessary visibility, and this package-scoped test builder does not need public methods.

File: JspSpanAssertions.java:34
Change: Renamed isExperimentalEnabled to EXPERIMENTAL_ENABLED and reduced experimental(String) from public to package-private.
Reason: The style guide treats immutable boolean constants as uppercase constants, and the helper method only needs package-local visibility under the minimal-visibility rule.


Download code review diagnostics

Automated code review of instrumentation/jsp-2.3/javaagent.
@otelbot
otelbot Bot requested a review from a team as a code owner April 21, 2026 21:53
@trask
trask enabled auto-merge (squash) April 22, 2026 00:18
@trask
trask merged commit 8c77266 into main Apr 22, 2026
173 of 183 checks passed
@trask
trask deleted the otelbot/code-review-jsp-2.3-javaagent branch April 22, 2026 00:31
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