sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Android: track Performance Class of the device

Open yogurtearl opened this issue 1 year ago • 4 comments

Problem Statement

For a given issue/trace I want to know the performance class of the device.

https://developer.android.com/topic/performance/performance-class

Also, I would like to be able to slice performance data by performance class.

Solution Brainstorm

Incorporate performance class data from androidx.core:core-performance and androidx.core:core-performance-play-services

see https://developer.android.com/topic/performance/performance-class

yogurtearl avatar Nov 08 '24 14:11 yogurtearl

hi @yogurtearl we already expose the device.class property for searching errors/transactions/spans, would it be enough or you want the google play perf class specifically?

romtsn avatar Nov 11 '24 14:11 romtsn

Using the standardized Google Play device classes would be more useful.

They have a lot more details on what it means to be in each class.

yogurtearl avatar Nov 11 '24 17:11 yogurtearl

makes sense! We'd have to make it a separate artifact since it pulls in a new dependency, but I think we can make it work, thanks for the suggestion 👍

romtsn avatar Nov 11 '24 17:11 romtsn

@yogurtearl thanks for the suggestion! We've added it to our backlog. In the meantime you could utilize Sentry.setTag("play-device-class", <>) to manually supply this information.

markushi avatar Nov 13 '24 14:11 markushi