Skip to content

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Oct 4, 2025

@aliu39 aliu39 requested a review from a team as a code owner October 4, 2025 06:30
Copy link

linear bot commented Oct 4, 2025

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

codecov bot commented Oct 4, 2025

Codecov Report

❌ Patch coverage is 79.16667% with 5 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/seer/explorer/index_data.py 79.16% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #100942   +/-   ##
========================================
  Coverage   81.14%    81.14%           
========================================
  Files        8629      8629           
  Lines      382754    382778   +24     
  Branches    24053     24053           
========================================
+ Hits       310604    310624   +20     
- Misses      71818     71822    +4     
  Partials      332       332           

transaction_name=transaction_name,
total_spans=len(spans),
spans=spans,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Inconsistent Trace Handling and KeyError

The get_trace_from_id function can return a TraceData object with an empty spans list if all rows lack a span_id after filtering, which is inconsistent with returning None when no spans are found initially. Separately, direct dictionary access for transaction and trace can raise a KeyError if these fields are missing from the first row, unlike other fields using .get().

Fix in Cursor Fix in Web

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.

1 participant