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

Send a back-navigation transaction if an error occurred inside of it

Open jennmueng opened this issue 4 years ago • 2 comments

We currently discard "back navigation" transactions if there are no child spans, but in the chance that an error occurs during the transaction, the trace id is attached to the event but the transaction is not sent, causing a trace not found on the dashboard.

We should consider sending back-navigation transactions when there is an event that occurred inside of it.

jennmueng avatar Jun 21 '21 09:06 jennmueng

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]

Why don't we send back navigation transactions in the first place? Is that to spare some quota because at this moment nothing is really happening?

If so, that makes sense, just wondering if the solution here is to not set the traceId at all then.

marandaneto avatar Mar 11 '22 13:03 marandaneto

We would need to change the default of this option, so this is a breaking change.

https://github.com/getsentry/sentry-react-native/blob/11ab73752331eb40918174de20c0793c7e262cfb/src/js/tracing/reactnativetracing.ts#L62

krystofwoldrich avatar Jun 02 '23 18:06 krystofwoldrich