|
19 | 19 |
|
20 | 20 | - Add option to capture additional network details for session replays (OkHttp) ([#4919](https://github.com/getsentry/sentry-java/pull/4919) |
21 | 21 | - Depends on `SentryOkHttpInterceptor` to intercept the request and extract request/response bodies. |
22 | | - - To enable, configure your sentry SDK using the "io.sentry.session-replay.network-*" options via [manifest](https://github.com/getsentry/sentry-java/blob/b03edbb1b0d8b871c62a09bc02cbd8a4e1f6fea1/sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml#L196-L205) |
23 | | - - Or manually specify SentryReplayOptions via [SentryAndroid#init](https://github.com/getsentry/sentry-java/blob/c83e427e8baca17098f882f8b45fc7c5a80c1d8c/sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MyApplication.java#L16-L28) |
| 22 | + - To enable, add regex urls via the "io.sentry.session-replay.network-detail-allow-urls" metadata tag in AndroidManifest [sample](https://github.com/getsentry/sentry-java/blob/b03edbb1b0d8b871c62a09bc02cbd8a4e1f6fea1/sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml#L196-L205) |
| 23 | + - Or manually specify SentryReplayOptions via SentryAndroid#init |
| 24 | + ```java |
| 25 | +// Example how to enable network details manually for all urls except those with the substring 'deny' in them |
| 26 | +// Make sure you disable the auto init via manifest meta-data: io.sentry.auto-init=false |
| 27 | +SentryAndroid.init( |
| 28 | +this, |
| 29 | +options -> { |
| 30 | +options.getSessionReplay().setNetworkDetailAllowUrls(new String[] {".*"}); |
| 31 | +options.getSessionReplay().setNetworkDetailDenyUrls(new String[] {".*deny.*"}); |
| 32 | +options.getSessionReplay().setNetworkRequestHeaders( |
| 33 | +Arrays.asList("Authorization", "X-Custom-Header", "X-Test-Request")); |
| 34 | +options.getSessionReplay().setNetworkResponseHeaders( |
| 35 | +Arrays.asList("X-Response-Time", "X-Cache-Status", "X-Test-Response")); |
| 36 | +}); |
| 37 | + ``` |
24 | 38 | - Implement OpenFeature Integration that tracks Feature Flag evaluations ([#4910](https://github.com/getsentry/sentry-java/pull/4910)) |
25 | 39 | - To make use of it, add the `sentry-openfeature` dependency and register the the hook using: `openFeatureApiInstance.addHooks(new SentryOpenFeatureHook());` |
26 | 40 | - Implement LaunchDarkly Integrations that track Feature Flag evaluations ([#4917](https://github.com/getsentry/sentry-java/pull/4917)) |
|
0 commit comments