sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Support span level measurements

Open krystofwoldrich opened this issue 1 year ago • 3 comments

Description

  • Meta issue https://github.com/getsentry/team-mobile/issues/172

According to our develop docs the span protocol supports measurements. The relay protocol definition includes measurements as well.

Up until now, our SDKs set the measurement value on the root transaction instead of the span itself. We should change that to allow measurements on a span level. This will help us reporting slow + frozen frames, frame delay, etc. going forward to span streaming.

### Blocked by
- [ ] https://github.com/getsentry/sentry-javascript/issues/10398
### Tasks
- [ ] Add slow and frozen frame measurements to spans
- [ ] Add frame delay to spans (Add frame delay for RN is a separate issue)

┆Issue is synchronized with this Jira Improvement by Unito

krystofwoldrich avatar Jan 29 '24 17:01 krystofwoldrich

This has been requested by a prospective enterprise customer (see linked Jira)

maxkosty avatar May 01 '24 05:05 maxkosty

Same customer also hoping to clarify that this ticket is tracking automatic instrumentation of frame drops and stalls, not just an intermediate step toward that goal requiring manual instrumentation.

maxkosty avatar May 01 '24 18:05 maxkosty

automatic instrumentation of frame drops and stalls

This is automatically tracked for Transaction at the moment and when Span level measurements this frame drops and stalls will be added to spans when span level measurements are implemented.

This doesn't include any new auto instrumented span. So if the customer doesn't have any span/transaction in the part of the app they are interested this feature won't change the current state.

krystofwoldrich avatar May 02 '24 15:05 krystofwoldrich