Skip to content

Commit 4967f52

Browse files
adinauerclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 87a8c5c commit 4967f52

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎docs/platforms/java/common/migration/8.x-to-9.0.mdx‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Learn how to migrate from version 8.x to 9.0 of the Sentry Java SD
44
sidebar_order: 994
55
---
66

7-
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.
7+
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.
88

99
## Removed Hub APIs
1010

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

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

52+
## Removed OpenTelemetry APIs
53+
54+
Version 9 removes these deprecated OpenTelemetry integration classes:
55+
56+
- `SentrySpanProcessor`
57+
- `SentryPropagator`
58+
- `OpenTelemetryLinkErrorEventProcessor`
59+
- `Instrumenter`, including its `SentryOptions` option, `SpanContext` property, and `startChild` overloads
60+
- `SentrySpanStorage` (internal)
61+
- `TraceData` (internal)
62+
63+
See the <PlatformLink to="/opentelemetry/">OpenTelemetry documentation</PlatformLink> for supported setup options.
64+
5265
## Manual Logs and Metrics
5366

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

0 commit comments

Comments
 (0)