-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Request for documentation #8578
Comments
Hey @jeengbe, thanks for writing in! See our docs: https://docs.sentry.io/platforms/node/usage/distributed-tracing/ let's say you had two Node services, A and B, where A sends a http request to B. In previous versions of the SDK, the only way tracing headers were attached to that http request was was if there was an active span/transaction during A's request handling. Now this requirement no longer exists. Tracing headers are attached no matter if there is an active/transaction span (the header just indicates nothing was sampled). Sentry uses traceIds to link all the "events" in it's system. This can be spans/transactions, errors, crons, or even replays. |
Also @jeengbe thanks for always asking questions and raising feedback, it's highly appreciated here! Feel like we need to get you some Sentry swag, if you shoot me an email at a + prasad + @ + sentry.io (remove the pluses), I can see we can get something organized :) |
Hi, thanks for the answer! What is not clear to me, however, is whether this changes anything for applications that do have tracing already enabled but for which the transaction chose not to be sampled. If B had an error that caused a downstream failure in A, would Sentry now (with the change) also link those if the transaction wasn't sampled? From what I understand, that was not the case previously, and I hope this is what has changed now. I haven't actually ever seen something like "This issue might be related to: <upstream event>" in practice, but that's how I assume that feature works. |
And it didn't link them before if the transaction was chosen not to be sampled? 😅 If so, then this is quite the upgrade |
yes it didn't link them. The whole point is here is to try to divorce the idea of distributed tracing from performance monitoring. We're slowly introducing this to all of our SDKs getsentry/team-sdks#5 |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
n/a
Framework Version
n/a
Link to Sentry event
n/a
SDK Setup
No response
Steps to Reproduce
In https://github.com/getsentry/sentry-javascript/releases/tag/7.58.0, the changelog reads:
What does this mean? It essentially sounds like "even without tracing, you still get tracing", does it instead refer to linked errors from upstream to downstream?
The change is not clear to me 🙂
Expected Result
n/a
Actual Result
n/a
The text was updated successfully, but these errors were encountered: