Skip to content

[Replay] Add ui.tap breadcrumbs for Android #3818

@krystofwoldrich

Description

@krystofwoldrich

Description

The RN SDK captures touch breadcrumbs. These are unknown to Sentry Replay player and needs to be converted to ui.tap.

Breadcrumbs conversion was added for sentry-android in https://github.com/getsentry/sentry-java/pull/3406/files#diff-2f6abcfaf76542e5e58a9fbd4458b23ca658763d9bc0f989abfdeeee5c5898ddR205

Extend sentry-android Replay Breadcrumbs conversion so hybrid SDKs like RN can change the conversion, add new conversion, overwrite existing conversion and remove breadcrumb. For ui.tab only adding new conversion is needed, but other types of breadcrumbs, navigation will require overwrite and remove.

The conversion from touch to ui.tap might be implemented for example like this.

breadcrumb.category == "touch" -> {
    breadcrumbCategory = "ui.tap"
    breadcrumbMessage = (breadcrumb.data["componentTree"] as ArrayList<*>).take(3).reversed().joinToString(" > ")
}

The RN SDK Android Replay is implemented in https://github.com/getsentry/sentry-react-native/pull/3714/files#diff-d6a452754193c856062829091f3c2012c9db45999fed9a4bddddf3850ea9dfb0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions