|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 8.10.0 |
| 4 | + |
| 5 | +### Features |
| 6 | + |
| 7 | +- Wrap configured OpenTelemetry `ContextStorageProvider` if available ([#4359](https://github.com/getsentry/sentry-java/pull/4359)) |
| 8 | + - This is only relevant if you see `java.lang.IllegalStateException: Found multiple ContextStorageProvider. Set the io.opentelemetry.context.ContextStorageProvider property to the fully qualified class name of the provider to use. Falling back to default ContextStorage. Found providers: ...` |
| 9 | + - Set `-Dio.opentelemetry.context.contextStorageProvider=io.sentry.opentelemetry.SentryContextStorageProvider` on your `java` command |
| 10 | + - Sentry will then wrap the other `ContextStorageProvider` that has been configured by loading it through SPI |
| 11 | + - If no other `ContextStorageProvider` is available or there are problems loading it, we fall back to using `SentryOtelThreadLocalStorage` |
| 12 | + |
| 13 | +### Fixes |
| 14 | + |
| 15 | +- Update profile chunk rate limit and client report ([#4353](https://github.com/getsentry/sentry-java/pull/4353)) |
| 16 | + |
| 17 | +### Dependencies |
| 18 | + |
| 19 | +- Bump Native SDK from v0.8.3 to v0.8.4 ([#4343](https://github.com/getsentry/sentry-java/pull/4343)) |
| 20 | + - [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#084) |
| 21 | + - [diff](https://github.com/getsentry/sentry-native/compare/0.8.3...0.8.4) |
| 22 | + |
| 23 | +## 8.9.0 |
| 24 | + |
| 25 | +### Features |
| 26 | + |
| 27 | +- Add `SentryWrapper.wrapRunnable` to wrap `Runnable` for use with Sentry ([#4332](https://github.com/getsentry/sentry-java/pull/4332)) |
| 28 | + |
| 29 | +### Fixes |
| 30 | + |
| 31 | +- Fix TTFD measurement when API called too early ([#4297](https://github.com/getsentry/sentry-java/pull/4297)) |
| 32 | +- Tag sockets traffic originating from Sentry's HttpConnection ([#4340](https://github.com/getsentry/sentry-java/pull/4340)) |
| 33 | + - This should suppress the StrictMode's `UntaggedSocketViolation` |
| 34 | +- Reduce debug logs verbosity ([#4341](https://github.com/getsentry/sentry-java/pull/4341)) |
| 35 | +- Fix unregister `SystemEventsBroadcastReceiver` when entering background ([#4338](https://github.com/getsentry/sentry-java/pull/4338)) |
| 36 | + - This should reduce ANRs seen with this class in the stack trace for Android 14 and above |
| 37 | + |
| 38 | +### Improvements |
| 39 | + |
| 40 | +- Make user interaction tracing faster and do fewer allocations ([#4347](https://github.com/getsentry/sentry-java/pull/4347)) |
| 41 | +- Pre-load modules on a background thread upon SDK init ([#4348](https://github.com/getsentry/sentry-java/pull/4348)) |
| 42 | + |
| 43 | +## 8.8.0 |
| 44 | + |
| 45 | +### Features |
| 46 | + |
| 47 | +- Add `CoroutineExceptionHandler` for reporting uncaught exceptions in coroutines to Sentry ([#4259](https://github.com/getsentry/sentry-java/pull/4259)) |
| 48 | + - This is now part of `sentry-kotlin-extensions` and can be used together with `SentryContext` when launching a coroutine |
| 49 | + - Any exceptions thrown in a coroutine when using the handler will be captured (not rethrown!) and reported to Sentry |
| 50 | + - It's also possible to extend `CoroutineExceptionHandler` to implement custom behavior in addition to the one we provide by default |
| 51 | + |
| 52 | +### Fixes |
| 53 | + |
| 54 | +- Use thread context classloader when available ([#4320](https://github.com/getsentry/sentry-java/pull/4320)) |
| 55 | + - This ensures correct resource loading in environments like Spring Boot where the thread context classloader is used for resource loading. |
| 56 | +- Improve low memory breadcrumb capturing ([#4325](https://github.com/getsentry/sentry-java/pull/4325)) |
| 57 | +- Fix do not initialize SDK for Jetpack Compose Preview builds ([#4324](https://github.com/getsentry/sentry-java/pull/4324)) |
| 58 | +- Fix Synchronize Baggage values ([#4327](https://github.com/getsentry/sentry-java/pull/4327)) |
| 59 | + |
| 60 | +### Improvements |
| 61 | + |
| 62 | +- Make `SystemEventsBreadcrumbsIntegration` faster ([#4330](https://github.com/getsentry/sentry-java/pull/4330)) |
| 63 | + |
| 64 | +## 8.7.0 |
| 65 | + |
| 66 | +### Features |
| 67 | + |
| 68 | +- UI Profiling GA |
| 69 | + |
| 70 | + Continuous Profiling is now GA, named UI Profiling. To enable it you can use one of the following options. More info can be found at https://docs.sentry.io/platforms/android/profiling/. |
| 71 | + Note: Both `options.profilesSampler` and `options.profilesSampleRate` must **not** be set to enable UI Profiling. |
| 72 | + To keep the same transaction-based behaviour, without the 30 seconds limitation, you can use the `trace` lifecycle mode. |
| 73 | + |
| 74 | + ```xml |
| 75 | + <application> |
| 76 | + <!-- Enable UI profiling, adjust in production env. This is evaluated only once per session --> |
| 77 | + <meta-data android:name="io.sentry.traces.profiling.session-sample-rate" android:value="1.0" /> |
| 78 | + <!-- Set profiling lifecycle, can be `manual` (controlled through `Sentry.startProfiler()` and `Sentry.stopProfiler()`) or `trace` (automatically starts and stop a profile whenever a sampled trace starts and finishes) --> |
| 79 | + <meta-data android:name="io.sentry.traces.profiling.lifecycle" android:value="trace" /> |
| 80 | + <!-- Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes --> |
| 81 | + <meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="true" /> |
| 82 | + </application> |
| 83 | + ``` |
| 84 | + ```java |
| 85 | + import io.sentry.ProfileLifecycle; |
| 86 | + import io.sentry.android.core.SentryAndroid; |
| 87 | + |
| 88 | + SentryAndroid.init(context, options -> { |
| 89 | + // Enable UI profiling, adjust in production env. This is evaluated only once per session |
| 90 | + options.setProfileSessionSampleRate(1.0); |
| 91 | + // Set profiling lifecycle, can be `manual` (controlled through `Sentry.startProfiler()` and `Sentry.stopProfiler()`) or `trace` (automatically starts and stop a profile whenever a sampled trace starts and finishes) |
| 92 | + options.setProfileLifecycle(ProfileLifecycle.TRACE); |
| 93 | + // Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes |
| 94 | + options.setStartProfilerOnAppStart(true); |
| 95 | + }); |
| 96 | + ``` |
| 97 | + ```kotlin |
| 98 | + import io.sentry.ProfileLifecycle |
| 99 | + import io.sentry.android.core.SentryAndroid |
| 100 | + |
| 101 | + SentryAndroid.init(context, { options -> |
| 102 | + // Enable UI profiling, adjust in production env. This is evaluated only once per session |
| 103 | + options.profileSessionSampleRate = 1.0 |
| 104 | + // Set profiling lifecycle, can be `manual` (controlled through `Sentry.startProfiler()` and `Sentry.stopProfiler()`) or `trace` (automatically starts and stop a profile whenever a sampled trace starts and finishes) |
| 105 | + options.profileLifecycle = ProfileLifecycle.TRACE |
| 106 | + // Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes |
| 107 | + options.isStartProfilerOnAppStart = true |
| 108 | + }) |
| 109 | + ``` |
| 110 | + |
| 111 | + - Continuous Profiling - Stop when app goes in background ([#4311](https://github.com/getsentry/sentry-java/pull/4311)) |
| 112 | + - Continuous Profiling - Add delayed stop ([#4293](https://github.com/getsentry/sentry-java/pull/4293)) |
| 113 | + - Continuous Profiling - Out of Experimental ([#4310](https://github.com/getsentry/sentry-java/pull/4310)) |
| 114 | + |
| 115 | +### Fixes |
| 116 | + |
| 117 | +- Compress Screenshots on a background thread ([#4295](https://github.com/getsentry/sentry-java/pull/4295)) |
| 118 | + |
3 | 119 | ## 8.6.0 |
4 | 120 |
|
5 | 121 | ### Behavioral Changes |
|
0 commit comments