diff --git a/docs/platforms/java/common/migration/8.x-to-9.0.mdx b/docs/platforms/java/common/migration/8.x-to-9.0.mdx index 220525e0129c33..932e2977a42c88 100644 --- a/docs/platforms/java/common/migration/8.x-to-9.0.mdx +++ b/docs/platforms/java/common/migration/8.x-to-9.0.mdx @@ -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 @@ -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 OpenTelemetry documentation 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: