Skip to content

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

Merged
adinauer merged 4 commits into
java-v9from
docs/java-v9-remove-hub-apis
Oct 29, 2026
Merged

adinauer merged 4 commits into
java-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 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

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>
@adinauer
adinauer marked this pull request as ready for review October 29, 2026 10:12
@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.

Base automatically changed from docs/java-android-logs-metrics-v9 to java-v9 October 29, 2026 10:13
@adinauer
adinauer merged commit 8bdf58b into java-v9 Oct 29, 2026
7 of 10 checks passed
@adinauer
adinauer deleted the docs/java-v9-remove-hub-apis branch October 29, 2026 10:14

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 68159d86 Deployed Oct 29, 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.

2 participants