Review fixes for jsp-2.3:javaagent#18129
Merged
Merged
Conversation
Automated code review of instrumentation/jsp-2.3/javaagent.
trask
approved these changes
Apr 22, 2026
trask
enabled auto-merge (squash)
April 22, 2026 00:18
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.
Summary
Applied safe review fixes in
instrumentation/jsp-2.3: added the missingdeclarative_namecoverage inmetadata.yamland tightened test-helper visibility/style in thejavaagenttest support classes.Applied Changes
Config
File:
metadata.yaml:9Change: Added
declarative_nameentries forotel.instrumentation.common.experimental.view-telemetry.enabledandotel.instrumentation.jsp.experimental-span-attributes.Reason:
metadata-yaml-format.mdrequires every instrumentationmetadata.yamlconfig entry to declare the correct declarative mapping, and both entries were already used by the module code.Style
File:
JspSpan.java:21Change: Reduced the helper bean accessors and mutators from
publicto 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:21Change: Reduced the builder methods from
publicto package-private.Reason: The style guide requires minimal necessary visibility, and this package-scoped test builder does not need
publicmethods.File:
JspSpanAssertions.java:34Change: Renamed
isExperimentalEnabledtoEXPERIMENTAL_ENABLEDand reducedexperimental(String)frompublicto 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