Sentry trace header not propagated to requests made from the native layer.
See original GitHub issueEnvironment
How do you use Sentry? Sentry SaaS (sentry.io)
Which SDK and version? “@sentry/react-native”: “^2.4.0”,
Steps to Reproduce
-
I tried to set up
Performance monitoring
throughIncluded Instrumentation
. -
I set up Sentry.
-
I connected Sentry to Navigatior.
-
That’s all what I did.
Expected Result
I would like to see sentry-trace
in my request headers. None of my request has it right now.
Can you, please, explain what step did I miss.
Actual Result
In Transactions
tab in Performance Dashboard I see only screen names which I visit, but I don’t see any other transactions (network calls, for example). I don’t have sentry-trace
headers in any of my network calls.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:23 (10 by maintainers)
Top Results From Across the Web
Connect Services for React Native | Sentry Documentation
The sentry-trace header holds information for identifying the trace, while the W3C compliant baggage header contains additional trace-related data that is used ...
Read more >@sentry/tracing | Yarn - Package Manager
... [integrations] fix: Tracing integration fetch headers bug where trace header is not attached if there are no options. [utils] fix: Better native...
Read more >Automatic Instrumentation for React - Sentry Documentation
If your frontend is making requests to a different domain, you will need to add it there to propagate the sentry-trace header to...
Read more >Configure Grafana | Grafana documentation
IdleConnTimeout documentation. send_user_header. If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request.
Read more >Update dependency @sentry/browser to v7 - GitLab.org
Update dependency @sentry/browser to v7 ... Closed GitLab Dependency Bot requested to merge ... Release Notes. getsentry/sentry-javascript ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@laygir @kaokei As you guys are using Vue and not React Native, I guess it’s not exactly related to this issue with the React Native SDK and rather the discussion should be on the Sentry Javascript repo: https://github.com/getsentry/sentry-javascript/issues/4072. Noting that I have not been able to reproduce this issue along with no one providing reproductions I will assume it is due to creating the request on the native layer side rather on the Javascript side like I earlier hypothesized.
I will thus rename this issue and move it to our Backlog.
Hey @kaokei 👋
I have been in touch with Sentry support and recently concluded a month long e-mail thread precisely about this behaviour. Also have created the issue below and it’s been acknowledged by Sentry and support told me that it is in the backlog and will be fixed soon. I hope they fulfill this promise.
https://github.com/getsentry/sentry-javascript/issues/4072
Feel free to add your additional findings on the above issue.