-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry trace header not propagated to requests made from the native layer. #1456
Comments
Same issue here 😐 |
Here too. |
Same here. |
Same here |
Any update? |
Same here. Any update? |
I just got back from a vacation, I will look into this ASAP |
Same issue with latest versions |
same here |
1 similar comment
same here |
Somewhat same here using vue 2 |
@jennmueng did you have the time to look into it? thanks |
How is everyone making the requests that are missing the FYI Given the current hybrid SDK limitations the trace header will only be attached to outgoing http requests sent by the javascript layer, and none from the native layer. |
@jennmueng I am on Vue2 but for what its worth, here's my issue: I make a request using Axios on the beforeEach hook of my router. When It took me some time to figure out automatic instrumentation does not pick up individual XHR requests (bummer) unless there is an active transaction. And automatic instrumentation only creates transactions for pageload and navigation as far as I could see so far. Perhaps documentation could be improved to state these hard facts, because as a dev who started using Sentry tracing just 2 weeks ago, I was under the assumption that every XHR request should have been pick up by the automatic instrumentation. Also this following Sentry support reply has mislead me on that expectation:
|
@jennmueng did you manage to reproduce this? |
I just met the same problem in a vue3 app. And I think the key problem is that sentry start pageload transaction too late. Now sentry start pageload transaction inside The picture below shows the timeline. The picture below shows that starting pageload transaction inside @jennmueng Is that possible to start pageload transaction earlier? |
Hey @kaokei 👋 I have been in touch with Sentry support and recently concluded a month long e-mail thread precisely about this behaviour. getsentry/sentry-javascript#4072 Feel free to add your additional findings on the above issue. |
@valeriashpiner can you confirm that you're also using the vue router? thanks |
@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: getsentry/sentry-javascript#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. |
@jennmueng I'm a bit lost here, help me out understanding what should be done. if people are using the what do you mean by |
@jennmueng mind clarifying? thanks |
After discussing on a call, the |
Closed in favor of #2003 and getsentry/sentry-javascript#4072 |
Environment
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.
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 havesentry-trace
headers in any of my network calls.The text was updated successfully, but these errors were encountered: