Skip to content

Enable jvm.gc.cause attribute by default#18967

Open
somiljain2006 wants to merge 8 commits into
open-telemetry:mainfrom
somiljain2006:Enable-GC-cause-attribute
Open

Enable jvm.gc.cause attribute by default#18967
somiljain2006 wants to merge 8 commits into
open-telemetry:mainfrom
somiljain2006:Enable-GC-cause-attribute

Conversation

@somiljain2006

Copy link
Copy Markdown

Fixes #16063

Change runtime telemetry to default capture_gc_cause to true, while preserving the deprecated configuration option for
backward compatibility. Update the documentation and Spring configuration metadata, and add tests covering the new default behavior and explicit opt-out.

Copilot AI review requested due to automatic review settings June 11, 2026 16:56
@somiljain2006 somiljain2006 requested a review from a team as a code owner June 11, 2026 16:56
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 11, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates runtime-telemetry configuration so GC cause capture is enabled by default, with documentation and tests reflecting the new default and deprecation behavior when disabling it.

Changes:

  • Switched capture-gc-cause default from false to true in Spring Boot metadata and runtime-telemetry docs.
  • Updated runtime-telemetry internal config default to true and adjusted the deprecation warning to trigger when disabling.
  • Added unit tests to validate the new default and the ability to disable.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
instrumentation/spring/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json Updates Spring Boot config metadata default for capture-gc-cause to true.
instrumentation/runtime-telemetry/library/src/main/java/io/opentelemetry/instrumentation/runtimetelemetry/internal/Internal.java Changes config default to enabled and updates warning behavior/message when disabling.
instrumentation/runtime-telemetry/README.md Documents the new default value for capture-gc-cause.
instrumentation/runtime-telemetry/library/src/test/java/io/opentelemetry/instrumentation/runtimetelemetry/RuntimeTelemetryTest.java Adds tests validating default behavior and disabling behavior.

@somiljain2006 somiljain2006 requested a review from trask June 11, 2026 19:57
@somiljain2006

Copy link
Copy Markdown
Author

@trask I have done the required changes, can you review them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stabilize runtime telemetry library modules

3 participants