|
4 | 4 |
|
5 | 5 | ### Fixes |
6 | 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` |
7 | 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)) |
8 | 22 | - Avoid unnecessary copies when using `CopyOnWriteArrayList` ([#4247](https://github.com/getsentry/sentry-java/pull/4247)) |
9 | 23 | - This affects in particular `SentryTracer.getLatestActiveSpan` which would have previously unnecessarily copied all children spans, with high impact on memory usage |
10 | 24 |
|
11 | 25 | ### Features |
12 | 26 |
|
13 | 27 | - 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)) |
| 28 | +- Capture OpenTelemetry span events ([#3564](https://github.com/getsentry/sentry-java/pull/3564)) |
| 29 | + - OpenTelemetry spans may have exceptions attached to them (`openTelemetrySpan.recordException`). We can now send those to Sentry as errors. |
| 30 | + - Set `capture-open-telemetry-events=true` in `sentry.properties` to enable it |
| 31 | + - Set `sentry.capture-open-telemetry-events=true` in Springs `application.properties` to enable it |
| 32 | + - Set `sentry.captureOpenTelemetryEvents: true` in Springs `application.yml` to enable it |
14 | 33 |
|
15 | 34 | ### Behavioural Changes |
16 | 35 |
|
17 | 36 | - Use `java.net.URI` for parsing URLs in `UrlUtils` ([#4210](https://github.com/getsentry/sentry-java/pull/4210)) |
18 | 37 | - 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) |
19 | 38 |
|
| 39 | +### Internal |
| 40 | + |
| 41 | +- Also use port when checking if a request is made to Sentry DSN ([#4231](https://github.com/getsentry/sentry-java/pull/4231)) |
| 42 | + - For our OpenTelemetry integration we check if a span is for a request to Sentry |
| 43 | + - We now also consider the port when performing this check |
| 44 | + |
20 | 45 | ### Dependencies |
21 | 46 |
|
22 | 47 | - Bump Native SDK from v0.7.20 to v0.8.1 ([#4137](https://github.com/getsentry/sentry-java/pull/4137)) |
@@ -459,6 +484,24 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that |
459 | 484 | - We are planning to improve this in the future but opted for this fix first. |
460 | 485 | - Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082)) |
461 | 486 |
|
| 487 | +## 7.22.1 |
| 488 | + |
| 489 | +### Fixes |
| 490 | + |
| 491 | +- Fix Ensure app start type is set, even when ActivityLifecycleIntegration is not running ([#4216](https://github.com/getsentry/sentry-java/pull/4216)) |
| 492 | +- Fix properly reset application/content-provider timespans for warm app starts ([#4244](https://github.com/getsentry/sentry-java/pull/4244)) |
| 493 | + |
| 494 | +## 7.22.0 |
| 495 | + |
| 496 | +### Fixes |
| 497 | + |
| 498 | +- Session Replay: Fix various crashes and issues ([#4135](https://github.com/getsentry/sentry-java/pull/4135)) |
| 499 | + - Fix `FileNotFoundException` when trying to read/write `.ongoing_segment` file |
| 500 | + - Fix `IllegalStateException` when registering `onDrawListener` |
| 501 | + - Fix SIGABRT native crashes on Motorola devices when encoding a video |
| 502 | +- (Jetpack Compose) Modifier.sentryTag now uses Modifier.Node ([#4029](https://github.com/getsentry/sentry-java/pull/4029)) |
| 503 | + - This allows Composables that use this modifier to be skippable |
| 504 | + |
462 | 505 | ## 7.21.0 |
463 | 506 |
|
464 | 507 | ### Fixes |
|
0 commit comments