Skip to content

docs(java): Update Logs and Metrics configuration for v9 - #19962

Merged
adinauer merged 6 commits into
java-v9from
docs/java-android-logs-metrics-v9
Oct 29, 2026
Merged

adinauer merged 6 commits into
java-v9from
docs/java-android-logs-metrics-v9

Conversation

@adinauer

Copy link
Copy Markdown
Member

Update the Java and Android Logs and Metrics documentation for the v9 behavior introduced by sentry-java#5939.

Manual Sentry.logger() and Sentry.metrics() calls no longer require global enable flags. Automatic Logback, Log4j 2, JUL, Spring Boot, Timber, and Logcat capture now documents the corresponding integration-specific opt-in. This also adds Java and Android migration guidance for removed configuration surfaces and constructor changes.

This PR targets the java-v9 collection branch instead of master so these changes can land with the other Java v9 documentation and become active together when v9 is released.

adinauer and others added 2 commits October 14, 2026 06:00
Remove the obsolete global Logs and Metrics enable options from Java and
Android documentation. Document integration-specific automatic log capture
flags and add migration guidance for the v9 breaking changes.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Oct 29, 2026 10:20am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Oct 29, 2026 10:20am UTC

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team October 14, 2026 04:01
@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Oct 14, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team October 14, 2026 04:01
dingsdax added a commit that referenced this pull request Oct 15, 2026
…8.59.0 (#19995)

Since Java/Android SDK 8.59.0
([getsentry/sentry-java#6184](getsentry/sentry-java#6184)),
direct `Sentry.logger()` and `Sentry.metrics()` calls are captured
regardless of `logs.enabled` / `metrics.enabled`. `logs.enabled` now
only gates automatic logging integrations, and `metrics.enabled` has no
effect.

The Java and Android Logs setup pages still say `logs.enabled` is
required to enable logging, and the Metrics options pages (Java, Spring
Boot, Android) still say `metrics.enabled=false` disables metrics
entirely. This adjusts those sentences in place, keeping the existing
structure and examples for older SDK versions.

The flags are removed entirely in v9; that guidance is handled
separately in #19962.

Refs SDK-1533

<!-- junior-request-attribution:start -->
via **johdax**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AD0ANK27LVV0%3A1792069918.618529 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0ANK27LVV0%3A1792069918.618529)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0ANK27LVV0%3A1792069918.618529/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Johannes Daxboeck <johannes.daxboeck@sentry.io>

@markushi markushi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

}
```

The Android Gradle plugin's `logcat.enabled` option controls Logcat bytecode instrumentation. `logcatLogCaptureEnabled` controls whether the instrumented records are also sent as Sentry Logs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

Comment thread platform-includes/getting-started-config/java.spring.mdx Outdated
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
@adinauer
adinauer marked this pull request as ready for review October 29, 2026 10:13
@github-actions

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

@adinauer
adinauer merged commit 02e20cd into java-v9 Oct 29, 2026
9 of 12 checks passed
@adinauer
adinauer deleted the docs/java-android-logs-metrics-v9 branch October 29, 2026 10:13
@cursor

cursor Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Services awaiting deployment · Rollout details

Status Service Environment
⚪ Not deployed yet sentry-docs

Mention @rollout in a comment to update the plan.

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry-docs — f2a477e4 Deployed Oct 29, 2026 by vercel[bot]
Preview – develop-docs — 540f95f0 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants