|
2 | 2 |
|
3 | 3 | ## Unreleased |
4 | 4 |
|
| 5 | +### Fixes |
| 6 | + |
| 7 | +- Use thread context classloader when available ([#4320](https://github.com/getsentry/sentry-java/pull/4320)) |
| 8 | + - This ensures correct resource loading in environments like Spring Boot where the thread context classloader is used for resource loading. |
| 9 | + |
5 | 10 | ### Internal |
6 | 11 |
|
7 | 12 | - Read build tool info from `sentry-debug-meta.properties` and attach it to events ([#4314](https://github.com/getsentry/sentry-java/pull/4314)) |
8 | 13 |
|
| 14 | +## 8.7.0 |
| 15 | + |
| 16 | +### Features |
| 17 | + |
| 18 | +- UI Profiling GA |
| 19 | + |
| 20 | + 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/. |
| 21 | + Note: Both `options.profilesSampler` and `options.profilesSampleRate` must **not** be set to enable UI Profiling. |
| 22 | + To keep the same transaction-based behaviour, without the 30 seconds limitation, you can use the `trace` lifecycle mode. |
| 23 | + |
| 24 | + ```xml |
| 25 | + <application> |
| 26 | + <!-- Enable UI profiling, adjust in production env. This is evaluated only once per session --> |
| 27 | + <meta-data android:name="io.sentry.traces.profiling.session-sample-rate" android:value="1.0" /> |
| 28 | + <!-- 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) --> |
| 29 | + <meta-data android:name="io.sentry.traces.profiling.lifecycle" android:value="trace" /> |
| 30 | + <!-- Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes --> |
| 31 | + <meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="true" /> |
| 32 | + </application> |
| 33 | + ``` |
| 34 | + ```java |
| 35 | + import io.sentry.ProfileLifecycle; |
| 36 | + import io.sentry.android.core.SentryAndroid; |
| 37 | + |
| 38 | + SentryAndroid.init(context, options -> { |
| 39 | + // Enable UI profiling, adjust in production env. This is evaluated only once per session |
| 40 | + options.setProfileSessionSampleRate(1.0); |
| 41 | + // 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) |
| 42 | + options.setProfileLifecycle(ProfileLifecycle.TRACE); |
| 43 | + // Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes |
| 44 | + options.setStartProfilerOnAppStart(true); |
| 45 | + }); |
| 46 | + ``` |
| 47 | + ```kotlin |
| 48 | + import io.sentry.ProfileLifecycle |
| 49 | + import io.sentry.android.core.SentryAndroid |
| 50 | + |
| 51 | + SentryAndroid.init(context, { options -> |
| 52 | + // Enable UI profiling, adjust in production env. This is evaluated only once per session |
| 53 | + options.profileSessionSampleRate = 1.0 |
| 54 | + // 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) |
| 55 | + options.profileLifecycle = ProfileLifecycle.TRACE |
| 56 | + // Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes |
| 57 | + options.isStartProfilerOnAppStart = true |
| 58 | + }) |
| 59 | + ``` |
| 60 | + |
| 61 | + - Continuous Profiling - Stop when app goes in background ([#4311](https://github.com/getsentry/sentry-java/pull/4311)) |
| 62 | + - Continuous Profiling - Add delayed stop ([#4293](https://github.com/getsentry/sentry-java/pull/4293)) |
| 63 | + - Continuous Profiling - Out of Experimental ([#4310](https://github.com/getsentry/sentry-java/pull/4310)) |
| 64 | + |
| 65 | +### Fixes |
| 66 | + |
| 67 | +- Compress Screenshots on a background thread ([#4295](https://github.com/getsentry/sentry-java/pull/4295)) |
| 68 | + |
9 | 69 | ## 8.6.0 |
10 | 70 |
|
11 | 71 | ### Behavioral Changes |
|
0 commit comments