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

Do not send empty Route Change Transactions

Open krystofwoldrich opened this issue 1 year ago • 1 comments

Description

In rare cases the SDK can send empty transaction named Route Change.

Actual

This happens when the navigation library API emits route change event but the current route api returns undefined.

Since route is undefined the SDK names the transaction Route Change, if no other auto instrumentation emits spans, the transaction will be empty.

Expected

The SDK should discard such a transaction as it doesn't contain any useful information. The SDK should record a dropped transaction, so we can observe frequency of this situation.

krystofwoldrich avatar Aug 05 '24 14:08 krystofwoldrich

The dropped tx should not show in reason sample_rate. Either in a new category or existing fitting one.

krystofwoldrich avatar Aug 09 '24 12:08 krystofwoldrich