Skip to content

Conversation

@roaga
Copy link
Member

@roaga roaga commented Nov 9, 2025

Reduce the max spans we fetch per transaction from 5000 to 1000. This should reduce bytes scanned, and for 99% of traces this has no effect.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 9, 2025
@codecov
Copy link

codecov bot commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103010      +/-   ##
===========================================
- Coverage   80.75%    80.64%   -0.11%     
===========================================
  Files        9145      9140       -5     
  Lines      395020    392793    -2227     
  Branches    24968     24968              
===========================================
- Hits       319002    316773    -2229     
- Misses      75617     75619       +2     
  Partials      401       401              

@roaga roaga marked this pull request as ready for review November 10, 2025 16:49
@roaga roaga requested a review from a team as a code owner November 10, 2025 16:49
orderby=["precise.start_ts"],
offset=0,
limit=5000,
limit=1000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incorrect Span Count Misleads Consumers

The total_spans field in the returned TraceData object is set to len(spans), but with the limit reduced to 1000, traces with more than 1000 spans will have an incorrect total_spans value that only reflects the number of fetched spans rather than the actual total. This misleads consumers like Seer and logging that rely on this metric.

Fix in Cursor Fix in Web

@roaga roaga merged commit d896543 into master Nov 10, 2025
66 of 67 checks passed
@roaga roaga deleted the explorer/reduce-trace-data branch November 10, 2025 16:52
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
Reduce the max spans we fetch per transaction from 5000 to 1000. This
should reduce bytes scanned, and for 99% of traces this has no effect.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
Reduce the max spans we fetch per transaction from 5000 to 1000. This
should reduce bytes scanned, and for 99% of traces this has no effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants