Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
- Allows filtering which errors trigger replay capture before the `onErrorSampleRate` is checked
- Returning `false` skips replay capture entirely for that error; returning `true` proceeds with the normal sample rate check
- Example usage:
```java
```kotlin
SentryAndroid.init(context) { options ->
options.sessionReplay.beforeErrorSampling =
SentryReplayOptions.BeforeErrorSamplingCallback { event, hint ->
// Skip replay for handled exceptions
val hasUnhandled = event.exceptions?.any { it.mechanism?.isHandled == false } == true
hasUnhandled
// Only capture replay for crashes (excluding e.g. handled exceptions)
event.isCrashed
}
}
```

### Dependencies

- Bump Native SDK from v0.13.2 to v0.13.3 ([#5215](https://github.com/getsentry/sentry-java/pull/5215))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0133)
- [diff](https://github.com/getsentry/sentry-native/compare/0.13.2...0.13.3)

## 8.36.0

### Features
Expand Down
Loading