Skip to content

Commit

Permalink
fix: navigation breadcrumb with missing to crashes native (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Feb 19, 2025
1 parent 537dfef commit 220db54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- Replay video interruption if a `navigation` breadcrumb is missing `to` route info ([#2720](https://github.com/getsentry/sentry-dart/pull/2720))

### Dependencies

- Bump Android SDK from v7.20.1 to v7.22.0 ([#2705](https://github.com/getsentry/sentry-dart/pull/2705))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ class SentryFlutterReplayBreadcrumbConverter : DefaultReplayBreadcrumbConverter(
"sentry.event" -> null
"sentry.transaction" -> null
"http" -> convertNetworkBreadcrumb(breadcrumb)
"navigation" -> newRRWebBreadcrumb(breadcrumb)
"navigation" -> {
if (breadcrumb.data.containsKey("to") && breadcrumb.data["to"] is String) {
newRRWebBreadcrumb(breadcrumb)
} else {
null
}
}
"ui.click" ->
newRRWebBreadcrumb(breadcrumb).apply {
category = "ui.tap"
Expand Down

0 comments on commit 220db54

Please sign in to comment.