Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/platforms/java/common/migration/8.x-to-9.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Learn how to migrate from version 8.x to 9.0 of the Sentry Java SD
sidebar_order: 994
---

Version 9 removes the deprecated Hub compatibility APIs and the global Logs and Metrics enable options. Migrate remaining Hub references to Scopes, then update your telemetry configuration.
Version 9 removes deprecated Hub compatibility and OpenTelemetry APIs, along with the global Logs and Metrics enable options. Migrate remaining Hub and OpenTelemetry references, then update your telemetry configuration.

## Removed Hub APIs

Expand Down Expand Up @@ -49,6 +49,19 @@ The Scopes model introduced in version 8 is the supported context model in versi

For backend and other JVM applications, APIs such as `Sentry.configureScope()` and `Sentry.setTag()` use the isolation scope by default.

## Removed OpenTelemetry APIs

Version 9 removes these deprecated OpenTelemetry integration classes:

- `SentrySpanProcessor`
- `SentryPropagator`
- `OpenTelemetryLinkErrorEventProcessor`
- `Instrumenter`, including its `SentryOptions` option, `SpanContext` property, and `startChild` overloads
- `SentrySpanStorage` (internal)
- `TraceData` (internal)

See the <PlatformLink to="/opentelemetry/">OpenTelemetry documentation</PlatformLink> for supported setup options.

## Manual Logs and Metrics

Calls to `Sentry.logger()` and `Sentry.metrics()` no longer require a global enable option. Remove calls to:
Expand Down
Loading