Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions docs/platforms/android/migration/v8-to-v9.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ The Scopes model introduced in version 8 is the supported context model in versi

On Android, APIs such as `Sentry.configureScope()` and `Sentry.setTag()` use the current scope by default.

## Removed `traceSampling` Option

Version 9 removes `SentryOptions.setTraceSampling(...)`, `SentryOptions.isTraceSampling()`, and the `io.sentry.traces.trace-sampling` manifest option. This option was a global switch for trace propagation, not a transaction sampling setting.

To stop attaching `sentry-trace` and `baggage` headers to outgoing HTTP requests, set `tracePropagationTargets` to an empty list. If your app uses manifest-only auto-initialization, replace the removed manifest option with an empty propagation target value:

```xml {filename:AndroidManifest.xml}
<meta-data
android:name="io.sentry.traces.trace-propagation-targets"
android:value="" />
```

For Apollo v2, set `attachTracingHeaders` to `false` on `SentryApolloInterceptor` because the interceptor doesn't have a request URL to match against propagation targets.

There is no replacement for suppressing the trace context in Sentry envelopes. Transactions with baggage now always include that context.

## Manual Logs and Metrics

Calls to `Sentry.logger()` and `Sentry.metrics()` no longer require a global enable option. Remove calls to:
Expand Down
8 changes: 8 additions & 0 deletions docs/platforms/java/common/migration/8.x-to-9.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ 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 `traceSampling` Option

Version 9 removes `SentryOptions.setTraceSampling(...)` and `SentryOptions.isTraceSampling()`. The option was a global switch for trace propagation, not a transaction sampling setting.

To stop attaching `sentry-trace` and `baggage` headers to outgoing HTTP requests, set `tracePropagationTargets` to an empty list. For Apollo v2, set `attachTracingHeaders` to `false` on `SentryApolloInterceptor` because the interceptor doesn't have a request URL to match against propagation targets.

There is no replacement for suppressing the trace context in Sentry envelopes. Transactions with baggage now always include that context.

## Removed OpenTelemetry APIs

Version 9 removes these deprecated OpenTelemetry integration classes:
Expand Down
Loading