Skip to content

Commit f6f9359

Browse files
authored
Merge branch 'main' into lcian/feat/report-build-tool
2 parents 2a4fb26 + 286b57f commit f6f9359

38 files changed

+654
-355
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get auth token
2121
id: token
22-
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
22+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,70 @@
22

33
## Unreleased
44

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+
510
### Internal
611

712
- Read build tool info from `sentry-debug-meta.properties` and attach it to events ([#4314](https://github.com/getsentry/sentry-java/pull/4314))
813

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+
969
## 8.6.0
1070

1171
### Behavioral Changes

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ org.gradle.workers.max=2
1414
android.useAndroidX=true
1515

1616
# Release information
17-
versionName=8.6.0
17+
versionName=8.7.0
1818

1919
# Override the SDK name on native crashes on Android
2020
sentryAndroidSdkName=sentry.native.android

sentry-android-core/api/sentry-android-core.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class io/sentry/android/core/ActivityLifecycleIntegration : android
4242

4343
public class io/sentry/android/core/AndroidContinuousProfiler : io/sentry/IContinuousProfiler, io/sentry/transport/RateLimiter$IRateLimitObserver {
4444
public fun <init> (Lio/sentry/android/core/BuildInfoProvider;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;Ljava/lang/String;ILio/sentry/ISentryExecutorService;)V
45-
public fun close ()V
45+
public fun close (Z)V
4646
public fun getProfilerId ()Lio/sentry/protocol/SentryId;
4747
public fun getRootSpanCounter ()I
4848
public fun isRunning ()Z

0 commit comments

Comments
 (0)