-
-
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
SDK 8.x SpanExporter bug #12498
Comments
Alright seems like this exact issue is getting fixed here: #12492 However, I think this needs some high priority communication in migration docs - Anyone upgrading from 7.x to 8.x and has transactions >5 mins will see their transactions have less data now, and will likely revert back to 7.x. |
Also oops, duplicates #12491 |
I think this is a valid point! We'll discuss this in the team, also possibly extending the default (at least to some extend). |
Update, we investigated this some more, and identified a way how we can "really" fix this, without config: #12510 |
Why was this issue closed? A fix has been implemented in #12610 allowing users to configure the wait duration for spans. Please feel free to leave a comment if you think this issue should be reopened. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.9.2
Framework Version
Node v18
Link to Sentry event
https://testorgrahul-ah.sentry.io/performance/summary/events/?project=4507431605108736&query=&statsPeriod=24h&transaction=sentry-sdk-8
SDK Setup
Steps to Reproduce
So ever since I upgraded to SDK 8.x, I've noticed any transaction I have that takes more than 5 minutes to run omits a ton of spans in the beginning of the transaction. I don't know why 5 minutes, but that seems to be the point where any transaction longer starts omitting initial spans entirely.
This was not an issue at all with SDK 7.x
Just in case I was going crazy and maybe something was wrong with our application itself, I created a script to try and reproduce this minimally. My executions of this script are available to view in the "Link to Sentry Event" above.
All this does is run for the number of minutes specified, and creates 1 span every 10 seconds within the transaction.
Expected Result
I expect to see all spans within the # of spans limit for a single transaction. A transaction taking more than 5 minutes but having total number of spans within the span limit of a transactions should show all spans in the transaction.
Actual Result
✅ Any transactions taking <= 5 minutes to run include all spans
❌ Any transactions taking ~5 minutes to run omit the first few spans
❌ Any transactions taking > 5 minutes to run omit an increasing number of spans in the beginning of the transaction
It seems only the latest ~28 top level spans (within the transaction) are reported
Example script execution of 10 minutes omitting initial spans:
Some important debug console output for a 20 minute execution
It's pending because the transaction hasn't finished yet!
Only exporting the last 30 spans at the end of the transaction 😭
The text was updated successfully, but these errors were encountered: