getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.67k stars 4.15k forks source link

Add Jetpack Compose UI rules to stacktrace grouping enhancers #71790

Open prfarlow1 opened 4 months ago

prfarlow1 commented 4 months ago

Problem Statement

I noticed that the default stacktrace grouping enhancers contains Android View rules, but do not contain and Compose rules. Would be good to mark strack trace frames coming from compose internals as part of the UI and likely should be excluded from grouping

Solution Brainstorm

# Do not include frames with AndroidUiDispatcher (or below) in grouping
stack.abs_path:androidx.compose.ui.platform.AndroidUiDispatcher v-group -group
# All code in androidx.compose module is system UI code
module:androidx.compose category=ui

Product Area

Unknown

getsantry[bot] commented 4 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 4 months ago

Routing to @getsentry/product-owners-settings-projects for triage ⏲️

getsantry[bot] commented 4 months ago

Routing to @getsentry/product-owners-issues for triage ⏲️

romtsn commented 3 months ago

the tweaked config should probably look like this (according to the stackframes we capture in jvm):

# Do not include frames with AndroidUiDispatcher (or below) in grouping
stack.abs_path:AndroidUiDispatcher.kt v-group -group
# All code in androidx.compose module is system UI code
module:androidx.compose.* category=ui
lobsterkatie commented 3 months ago

@prfarlow1 - Can you please try out the rules @romtsn suggested as custom grouping rules and let us know if they do what you're hoping for?