question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sentry trace header not propagated to requests made from the native layer.

See original GitHub issue

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version? @sentry/react-native”: “^2.4.0”,

Steps to Reproduce

  1. I tried to set up Performance monitoring through Included Instrumentation.

  2. I set up Sentry. Screen Shot 2021-04-19 at 4 03 28 PM

  3. I connected Sentry to Navigatior. Screen Shot 2021-04-19 at 4 05 53 PM

  4. 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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jennmuengcommented, Nov 30, 2021

@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.

1reaction
laygircommented, Nov 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found