Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react
SDK Version
7.17.3 - but tested on 7.23.0 with same result
Framework Version
17.0.2 (react-router-dom: 6.4.3)
Link to Sentry event
Steps to Reproduce
- Examine our project's SDK configuration index.js#L60-65 and index.js#L104
0.1 Examine code that initiates span that gets cut short before it finishes: Products.js#L39 - called fromcomponentDidMount()
- Go to https://application-monitoring-react-dot-sales-engineering-sf.appspot.com/products
- Open devtools
- (optional) set breakpoint in idletransaction.tx - will eventually point you to reactrouterv6.tsx: handleNavigation() and _useEffect()
- Reload page
- Inspect console log (Debug level)
- Get transaction ID from Network tab and plug into search in /products transaction of this project
- Internal ticket: https://getsentry.atlassian.net/browse/FEEDBACK-1679
Expected Result
Transaction runs its course and does not finish prematurely before http.client
span (GET https://.../products) is complete.
Actual Result
- Logs show "[Tracing] cancelling span since transaction ended early"
- In Sentry UI the last
http.client
span (GET https://.../products) of the transaction is cut short even though corresponding backend transaction is ~ 2 seconds.