Skip to content

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

@romtsn romtsn requested a review from brustolin May 3, 2024 15:36
@github-actions
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 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
@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.

4 participants