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

Update StallTrackingInstrumentation to use `startSpan` event

Open krystofwoldrich opened this issue 1 year ago • 0 comments

Description

This change is required for JS v8, asspanRecorder was definitively removed.

  • https://github.com/getsentry/sentry-javascript/pull/10977/
### Tasks
- [ ] Add integration test not relying on internal structure StallTrackingInstrumentation  [impl](https://github.com/getsentry/sentry-react-native/blob/071289ab6301baec9dc8f19d86e2779cc00e1902/src/js/tracing/nativeframes.ts#L24)
- [ ] Replace `onTransactionStart` and `onTransactionFinish` by `client.on(spanStart)`

Example tests: timetodisplay.test.tsx, reactnavigation.ttid.test.tsx

krystofwoldrich avatar Mar 21 '24 10:03 krystofwoldrich