Skip to content

Review fixes for runtime-telemetry-java8:library#17667

Open
otelbot[bot] wants to merge 1 commit intomainfrom
otelbot/code-review-runtime-telemetry-java8-library
Open

Review fixes for runtime-telemetry-java8:library#17667
otelbot[bot] wants to merge 1 commit intomainfrom
otelbot/code-review-runtime-telemetry-java8-library

Conversation

@otelbot
Copy link
Copy Markdown
Contributor

@otelbot otelbot bot commented Apr 7, 2026

Summary

Applied 2 safe documentation fixes in runtime-telemetry-java8 library sources to keep deprecated API guidance and method comments aligned with actual behavior.

Applied Changes

General

File: RuntimeMetrics.java:52
Change: Updated RuntimeMetrics.close() Javadoc from JMX metrics to runtime metrics.
Reason: knowledge/general-rules.md says to fix incorrect comments; this wrapper can also stop delegated non-JMX runtime telemetry, so the old comment was too narrow.

File: RuntimeMetricsBuilder.java:52
Change: Adjusted captureGcCause() deprecation Javadoc to point callers at RuntimeTelemetry plus otel.instrumentation.runtime-telemetry.capture-gc-cause=true for the legacy opt-in path.
Reason: knowledge/general-rules.md says to fix incorrect comments; the previous deprecation text pointed to RuntimeTelemetry#builder(OpenTelemetry) alone even though the equivalent public opt-in is exposed through configuration, not a public builder method.


Download code review diagnostics

Automated code review of instrumentation/runtime-telemetry/runtime-telemetry-java8/library.
@otelbot otelbot bot requested a review from a team as a code owner April 7, 2026 16:30
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.

0 participants