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

Listen to Span creation from native layer

Open bruno-garcia opened this issue 4 years ago • 4 comments

The native SDKs could have a span creation callback that would be leverage by hybrid SDKs such as RN. In the event of span/transaction creation, the hybrid layer would listen and append to any current transaction under a native operation.

In a way that all spans created in the native layer would be children of this one span.

bruno-garcia avatar Sep 17 '21 17:09 bruno-garcia

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Nov 04 '21 15:11 github-actions[bot]

A workaround would be to continue a transaction from the Native layer, See example.

marandaneto avatar Mar 11 '22 13:03 marandaneto

A workaround is possible https://github.com/getsentry/sentry-dart/issues/721#issuecomment-1023125360 This is a Dart code snippet but I believe you can do something similar with the RN/JS SDK.

marandaneto avatar Mar 25 '22 10:03 marandaneto

Maybe a different solution would be to wait for Single Span ingestion.

marandaneto avatar Mar 25 '22 10:03 marandaneto