Skip to content

docs(java): Document Hub API removal - #20250

Draft
adinauer wants to merge 3 commits into
docs/java-android-logs-metrics-v9from
docs/java-v9-remove-hub-apis
Draft

adinauer wants to merge 3 commits into
docs/java-android-logs-metrics-v9from
docs/java-v9-remove-hub-apis

Conversation

@adinauer

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Updates the Java and Android v9 documentation for the deprecated Hub compatibility APIs removed by sentry-java#6223.

  • Replaces the remaining Spring IHub examples with IScopes.
  • Replaces Android OkHttp examples that call Sentry.getCurrentHub() with Sentry.getCurrentScopes().
  • Adds Hub-to-Scopes replacements and lifecycle-token guidance to the Java and Android v8-to-v9 migration guides.

This PR is stacked on #19962, which introduces the v9 migration pages.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Replace the remaining Spring and Android examples that use removed Hub APIs. Add migration mappings for the v9 Scopes APIs and lifecycle-token pattern.

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

vercel Bot commented Oct 27, 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 27, 2026 2:40pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Oct 27, 2026 2:40pm UTC

Request Review

Carry the v8 Scopes migration guidance into the v9 removal guide. Document lifecycle-token cleanup, independent scope forks, and the supported scope model.

Co-Authored-By: Claude <noreply@anthropic.com>
Use balanced scope callbacks in the Android migration guide because static
push operations do not fork scopes in Android's default global hub mode.
Document the persistent global scope API for configuration before SDK init.

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

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 87a8c5c9 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: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant