|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## Unreleased |
| 4 | + |
| 5 | +### Fixes |
| 6 | + |
| 7 | +- The SDK now handles `null` on many APIs instead of expecting a non `null` value ([#4245](https://github.com/getsentry/sentry-java/pull/4245)) |
| 8 | + - Certain APIs like `setTag`, `setData`, `setExtra`, `setContext` previously caused a `NullPointerException` when invoked with either `null` key or value. |
| 9 | + - The SDK now tries to have a sane fallback when `null` is passed and no longer throws `NullPointerException` |
| 10 | + - If `null` is passed, the SDK will |
| 11 | + - do nothing if a `null` key is passed, returning `null` for non void methods |
| 12 | + - remove any previous value if the new value is set to `null` |
| 13 | +- Add support for setting in-app-includes/in-app-excludes via AndroidManifest.xml ([#4240](https://github.com/getsentry/sentry-java/pull/4240)) |
| 14 | +- Modifications to OkHttp requests are now properly propagated to the affected span / breadcrumbs ([#4238](https://github.com/getsentry/sentry-java/pull/4238)) |
| 15 | + - Please ensure the SentryOkHttpInterceptor is added last to your OkHttpClient, as otherwise changes to the `Request` by subsequent interceptors won't be considered |
| 16 | +- Fix "class ch.qos.logback.classic.spi.ThrowableProxyVO cannot be cast to class ch.qos.logback.classic.spi.ThrowableProxy" ([#4206](https://github.com/getsentry/sentry-java/pull/4206)) |
| 17 | + - In this case we cannot report the `Throwable` to Sentry as it's not available |
| 18 | + - If you are using OpenTelemetry v1 `OpenTelemetryAppender`, please consider upgrading to v2 |
| 19 | +- Pass OpenTelemetry span attributes into TracesSampler callback ([#4253](https://github.com/getsentry/sentry-java/pull/4253)) |
| 20 | + - `SamplingContext` now has a `getAttribute` method that grants access to OpenTelemetry span attributes via their String key (e.g. `http.request.method`) |
| 21 | +- Fix AbstractMethodError when using SentryTraced for Jetpack Compose ([#4255](https://github.com/getsentry/sentry-java/pull/4255)) |
| 22 | + |
3 | 23 | ### Features |
4 | 24 |
|
5 | 25 | - The SDK now automatically propagates the trace-context to the native layer. This allows to connect errors on different layers of the application. ([#4137](https://github.com/getsentry/sentry-java/pull/4137)) |
| 26 | +- Capture OpenTelemetry span events ([#3564](https://github.com/getsentry/sentry-java/pull/3564)) |
| 27 | + - OpenTelemetry spans may have exceptions attached to them (`openTelemetrySpan.recordException`). We can now send those to Sentry as errors. |
| 28 | + - Set `capture-open-telemetry-events=true` in `sentry.properties` to enable it |
| 29 | + - Set `sentry.capture-open-telemetry-events=true` in Springs `application.properties` to enable it |
| 30 | + - Set `sentry.captureOpenTelemetryEvents: true` in Springs `application.yml` to enable it |
| 31 | + |
| 32 | +### Behavioural Changes |
| 33 | + |
| 34 | +- Use `java.net.URI` for parsing URLs in `UrlUtils` ([#4210](https://github.com/getsentry/sentry-java/pull/4210)) |
| 35 | + - This could affect grouping for issues with messages containing URLs that fall in known corner cases that were handled incorrectly previously (e.g. email in URL path) |
| 36 | + |
| 37 | +### Internal |
| 38 | + |
| 39 | +- Also use port when checking if a request is made to Sentry DSN ([#4231](https://github.com/getsentry/sentry-java/pull/4231)) |
| 40 | + - For our OpenTelemetry integration we check if a span is for a request to Sentry |
| 41 | + - We now also consider the port when performing this check |
6 | 42 |
|
7 | 43 | ### Dependencies |
8 | 44 |
|
@@ -446,6 +482,24 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that |
446 | 482 | - We are planning to improve this in the future but opted for this fix first. |
447 | 483 | - Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082)) |
448 | 484 |
|
| 485 | +## 7.22.1 |
| 486 | + |
| 487 | +### Fixes |
| 488 | + |
| 489 | +- Fix Ensure app start type is set, even when ActivityLifecycleIntegration is not running ([#4216](https://github.com/getsentry/sentry-java/pull/4216)) |
| 490 | +- Fix properly reset application/content-provider timespans for warm app starts ([#4244](https://github.com/getsentry/sentry-java/pull/4244)) |
| 491 | + |
| 492 | +## 7.22.0 |
| 493 | + |
| 494 | +### Fixes |
| 495 | + |
| 496 | +- Session Replay: Fix various crashes and issues ([#4135](https://github.com/getsentry/sentry-java/pull/4135)) |
| 497 | + - Fix `FileNotFoundException` when trying to read/write `.ongoing_segment` file |
| 498 | + - Fix `IllegalStateException` when registering `onDrawListener` |
| 499 | + - Fix SIGABRT native crashes on Motorola devices when encoding a video |
| 500 | +- (Jetpack Compose) Modifier.sentryTag now uses Modifier.Node ([#4029](https://github.com/getsentry/sentry-java/pull/4029)) |
| 501 | + - This allows Composables that use this modifier to be skippable |
| 502 | + |
449 | 503 | ## 7.21.0 |
450 | 504 |
|
451 | 505 | ### Fixes |
|
0 commit comments