Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR] Align breadcrumbs with frontend #3406

Merged
merged 4 commits into from
May 29, 2024

Conversation

romtsn
Copy link
Member

@romtsn romtsn commented May 3, 2024

#skip-changelog

📜 Description

  • Change categories and data according to this table (what frontend expects)
  • Had to introduce a new breadcrumb for battery status changes (with throttling of 1 minute, analogous to what iOS does)

💡 Motivation and Context

Part of getsentry/sentry#70065

Copy link
Contributor

github-actions bot commented May 3, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 323.23 ms 362.14 ms 38.91 ms
Size 1.70 MiB 2.33 MiB 639.67 KiB

Previous results on branch: rz/feat/session-replay-breadcrumbs-v2

Startup times

Revision Plain With Sentry Diff
20b3ea3 399.17 ms 495.22 ms 96.05 ms
2c855ae 366.32 ms 429.25 ms 62.93 ms

App size

Revision Plain With Sentry Diff
20b3ea3 1.70 MiB 2.33 MiB 639.92 KiB
2c855ae 1.70 MiB 2.32 MiB 638.51 KiB

Copy link
Member

@markushi markushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

var breadcrumbMessage: String? = null
val breadcrumbCategory: String?
var breadcrumbCategory: String? = null
var breadcrumbLevel: SentryLevel? = null
val breadcrumbData = mutableMapOf<String, Any?>()
when {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romtsn what do you think about extracting this to a class so we can override it from RN and Flutter to have custom mapping?

Base automatically changed from rz/feat/session-replay-touch-events to rz/feat/session-replay May 29, 2024 11:15
@romtsn romtsn merged commit 50443a4 into rz/feat/session-replay May 29, 2024
20 checks passed
@romtsn romtsn deleted the rz/feat/session-replay-breadcrumbs-v2 branch May 29, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants