Skip to content

Commit

Permalink
fix: navigation breadcrumb with missing to crashes native
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Feb 16, 2025
1 parent 3392f27 commit 2e476b8
Showing 1 changed file with 7 additions and 1 deletion.
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 2e476b8

Please sign in to comment.