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

Allow custom instrumentation to collect slow and frozen frames

Open ueman opened this issue 3 years ago • 3 comments
trafficstars

I would like to be able to use the frames integration on macOS. Currently that's not possible because it depends on native code, which is also not able to provide frame information.

However I could gather frame informations in pure Flutter code, based on https://github.com/getsentry/sentry-dart/pull/699 . That would also enable that feature on Linux and Windows and it's compatible from Flutter 2.0 onwards.

Therefore, I would like to have a way to somehow achieve this.

ueman avatar Mar 18 '22 19:03 ueman

@ueman we're experimenting with a new public API for adding custom measurements, See https://github.com/getsentry/sentry-python/pull/1359 Not sure if we will make SentryNative flexible enough, but rather give you a proper way to report any measurement based on your own way.

marandaneto avatar Mar 23 '22 14:03 marandaneto

Yeah, but then I would also have to write my own NavigationObserver and so on. The support for custom metrics is pretty exciting.

ueman avatar Mar 23 '22 19:03 ueman

We will make an abstraction in the API that when you use the custom instrumentation, slow and frozen frames are attached automatically.

philipphofmann avatar May 19 '22 12:05 philipphofmann