From 4967f528b7fca1d0ab56f9ba87cc2fda362a563c Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Tue, 27 Oct 2026 15:43:51 +0100 Subject: [PATCH] docs(java): Document removed OpenTelemetry APIs List the OpenTelemetry integration and instrumenter APIs removed in v9 and direct readers to the supported Java OpenTelemetry documentation. Refs getsentry/sentry-java#6243 Refs getsentry/sentry-java#6252 Co-Authored-By: Claude --- .../java/common/migration/8.x-to-9.0.mdx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 220525e0129c3..932e2977a42c8 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: