Skip to content

Commit 8c1fb22

Browse files
authored
chore(changelog): Update dependencies section with Native SDK version bump (#5217)
* chore(changelog): Update dependencies section with Native SDK version bump * Refine SentryAndroid replay capture logic Updated SentryAndroid initialization code to capture replay only for crashes. * Change example usage from Java to Kotlin Updated example usage in CHANGELOG to use Kotlin.
1 parent 8fcc5df commit 8c1fb22

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@
1919
- Allows filtering which errors trigger replay capture before the `onErrorSampleRate` is checked
2020
- Returning `false` skips replay capture entirely for that error; returning `true` proceeds with the normal sample rate check
2121
- Example usage:
22-
```java
22+
```kotlin
2323
SentryAndroid.init(context) { options ->
2424
options.sessionReplay.beforeErrorSampling =
2525
SentryReplayOptions.BeforeErrorSamplingCallback { event, hint ->
26-
// Skip replay for handled exceptions
27-
val hasUnhandled = event.exceptions?.any { it.mechanism?.isHandled == false } == true
28-
hasUnhandled
26+
// Only capture replay for crashes (excluding e.g. handled exceptions)
27+
event.isCrashed
2928
}
3029
}
3130
```
3231

3332
### Dependencies
3433

34+
- Bump Native SDK from v0.13.2 to v0.13.3 ([#5215](https://github.com/getsentry/sentry-java/pull/5215))
35+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0133)
36+
- [diff](https://github.com/getsentry/sentry-native/compare/0.13.2...0.13.3)
3537
- Bump OpenTelemetry ([#5225](https://github.com/getsentry/sentry-java/pull/5225))
3638
- `opentelemetry` to `1.60.1` (was `1.57.0`)
3739
- `opentelemetry-instrumentation` to `2.26.0` (was `2.23.0`)

0 commit comments

Comments
 (0)