Skip to content
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

feat(traec): add errors to trace #87314

Merged
merged 4 commits into from
Mar 19, 2025
Merged

feat(traec): add errors to trace #87314

merged 4 commits into from
Mar 19, 2025

Conversation

wmak
Copy link
Member

@wmak wmak commented Mar 18, 2025

  • This adds a query to the old discover table for errors data for a
    given trace then zips that back together with spans data that we've
    gotten from EAP
  • Longterm errors data will also come from EAP but that's not ready yet

@wmak wmak requested review from a team as code owners March 18, 2025 19:22
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 18, 2025
@wmak wmak changed the title Wmak/feat/add errors to trace feat(traec): add errors to trace Mar 18, 2025
- This adds a query to the old discover table for errors data for a
  given trace then zips that back together with spans data that we've
  gotten from EAP
- Longterm errors data will also come from EAP but that's not ready yet
@wmak wmak force-pushed the wmak/feat/add-errors-to-trace branch from 359e13a to 126075f Compare March 18, 2025 19:40
@wmak
Copy link
Member Author

wmak commented Mar 18, 2025

Would recommend reviewing 126075f directly instead of the full diff, 67000b5 just moves the file since its no longer just a span endpoint

event_id: str
parent_span_id: str | None
event_type: str
is_transaction: bool
Copy link
Member

Choose a reason for hiding this comment

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

nit: move this to SerializedSpan?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

Attention: Patch coverage is 97.47899% with 3 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/api/endpoints/organization_trace.py 96.73% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #87314       +/-   ##
===========================================
+ Coverage   33.19%   87.75%   +54.55%     
===========================================
  Files        8335     9860     +1525     
  Lines      464115   558839    +94724     
  Branches    22011    22011               
===========================================
+ Hits       154069   490393   +336324     
+ Misses     309663    68063   -241600     
  Partials      383      383               

@wmak wmak merged commit 924220d into master Mar 19, 2025
48 checks passed
@wmak wmak deleted the wmak/feat/add-errors-to-trace branch March 19, 2025 15:58
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.

2 participants