Skip to content

Commit 6e7fff2

Browse files
committed
Merge branch 'main' into markushi/feat/anr-profiling
2 parents 5824f8f + fc5ccaf commit 6e7fff2

File tree

65 files changed

+3440
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3440
-159
lines changed

.craft.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ targets:
4141
maven:io.sentry:sentry-android-fragment:
4242
maven:io.sentry:sentry-bom:
4343
maven:io.sentry:sentry-openfeign:
44+
#maven:io.sentry:sentry-openfeature:
4445
maven:io.sentry:sentry-opentelemetry-agent:
4546
maven:io.sentry:sentry-opentelemetry-agentcustomization:
4647
maven:io.sentry:sentry-opentelemetry-agentless:

.github/ISSUE_TEMPLATE/bug_report_android.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ body:
1616
- sentry-apollo
1717
- sentry-apollo-3
1818
- sentry-compose
19+
- sentry-launchdarkly-android
1920
- sentry-okhttp
2021
- other
2122
validations:

.github/ISSUE_TEMPLATE/bug_report_java.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ body:
3535
- sentry-graphql-22
3636
- sentry-quartz
3737
- sentry-openfeign
38+
- sentry-openfeature
39+
- sentry-launchdarkly-server
3840
- sentry-apache-http-client-5
3941
- sentry-okhttp
4042
- sentry-reactor

.github/workflows/spring-boot-4-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
springboot-version: [ '4.0.0-M1', '4.0.0-M2', '4.0.0-M3' ]
22+
springboot-version: [ '4.0.0' ]
2323

2424
name: Spring Boot ${{ matrix.springboot-version }}
2525
env:

CHANGELOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,89 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Add option to capture additional OkHttp network request/response details in session replays ([#4919](https://github.com/getsentry/sentry-java/pull/4919))
8+
- Depends on `SentryOkHttpInterceptor` to intercept the request and extract request/response bodies
9+
- To enable, add url regexes via the `io.sentry.session-replay.network-detail-allow-urls` metadata tag in AndroidManifest ([code sample](https://github.com/getsentry/sentry-java/blob/b03edbb1b0d8b871c62a09bc02cbd8a4e1f6fea1/sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml#L196-L205))
10+
- Or you can manually specify SentryReplayOptions via `SentryAndroid#init`:
11+
_(Make sure you disable the auto init via manifest meta-data: io.sentry.auto-init=false)_
12+
13+
<details>
14+
<summary>Kotlin</summary>
15+
16+
```kotlin
17+
SentryAndroid.init(
18+
this,
19+
options -> {
20+
// options.dsn = "https://examplePublicKey@o0.ingest.sentry.io/0"
21+
// options.sessionReplay.sessionSampleRate = 1.0
22+
// options.sessionReplay.onErrorSampleRate = 1.0
23+
// ..
24+
25+
options.sessionReplay.networkDetailAllowUrls = listOf(".*")
26+
options.sessionReplay.networkDetailDenyUrls = listOf(".*deny.*")
27+
options.sessionReplay.networkRequestHeaders = listOf("Authorization", "X-Custom-Header", "X-Test-Request")
28+
options.sessionReplay.networkResponseHeaders = listOf("X-Response-Time", "X-Cache-Status", "X-Test-Response")
29+
});
30+
```
31+
32+
</details>
33+
34+
<details>
35+
<summary>Java</summary>
36+
37+
```java
38+
SentryAndroid.init(
39+
this,
40+
options -> {
41+
options.getSessionReplay().setNetworkDetailAllowUrls(Arrays.asList(".*"));
42+
options.getSessionReplay().setNetworkDetailDenyUrls(Arrays.asList(".*deny.*"));
43+
options.getSessionReplay().setNetworkRequestHeaders(
44+
Arrays.asList("Authorization", "X-Custom-Header", "X-Test-Request"));
45+
options.getSessionReplay().setNetworkResponseHeaders(
46+
Arrays.asList("X-Response-Time", "X-Cache-Status", "X-Test-Response"));
47+
});
48+
49+
```
50+
51+
</details>
52+
53+
54+
### Improvements
55+
56+
- Avoid forking `rootScopes` for Reactor if current thread has `NoOpScopes` ([#4793](https://github.com/getsentry/sentry-java/pull/4793))
57+
- This reduces the SDKs overhead by avoiding unnecessary scope forks
58+
59+
### Fixes
60+
61+
- Fix missing thread stacks for ANRv1 events ([#4918](https://github.com/getsentry/sentry-java/pull/4918))
62+
63+
### Internal
64+
65+
- Support `span` envelope item type ([#4935](https://github.com/getsentry/sentry-java/pull/4935))
66+
67+
## 8.27.1
68+
69+
### Fixes
70+
71+
- Do not log if `sentry.properties` in rundir has not been found ([#4929](https://github.com/getsentry/sentry-java/pull/4929))
72+
73+
## 8.27.0
74+
75+
### Features
76+
77+
- Implement OpenFeature Integration that tracks Feature Flag evaluations ([#4910](https://github.com/getsentry/sentry-java/pull/4910))
78+
- To make use of it, add the `sentry-openfeature` dependency and register the the hook using: `openFeatureApiInstance.addHooks(new SentryOpenFeatureHook());`
79+
- Implement LaunchDarkly Integrations that track Feature Flag evaluations ([#4917](https://github.com/getsentry/sentry-java/pull/4917))
80+
- For Android, please add `sentry-launchdarkly-android` as a dependency and register the `SentryLaunchDarklyAndroidHook`
81+
- For Server / JVM, please add `sentry-launchdarkly-server` as a dependency and register the `SentryLaunchDarklyServerHook`
82+
- Detect oversized events and reduce their size ([#4903](https://github.com/getsentry/sentry-java/pull/4903))
83+
- You can opt into this new behaviour by setting `enableEventSizeLimiting` to `true` (`sentry.enable-event-size-limiting=true` for Spring Boot `application.properties`)
84+
- You may optionally register an `onOversizedEvent` callback to implement custom logic that is executed in case an oversized event is detected
85+
- This is executed first and if event size was reduced sufficiently, no further truncation is performed
86+
- In case we detect an oversized event, we first drop breadcrumbs and if that isn't sufficient we also drop stack frames in order to get an events size down
87+
588
### Improvements
689

790
- Do not send manual log origin ([#4897](https://github.com/getsentry/sentry-java/pull/4897))
@@ -12,6 +95,10 @@
1295
- Enable via `options.setEnableAnrProfiling(true)` or Android manifest: `<meta-data android:name="io.sentry.anr.enable-profiling" android:value="true" />`
1396

1497

98+
### Dependencies
99+
100+
- Bump Spring Boot 4 to GA ([#4923](https://github.com/getsentry/sentry-java/pull/4923))
101+
15102
## 8.26.0
16103

17104
### Features

0 commit comments

Comments
 (0)