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(tracing-without-performance): Returned orphan errors with trace … #54103

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

Abdkhan14
Copy link
Contributor

@Abdkhan14 Abdkhan14 commented Aug 3, 2023

For the ticket: https://getsentry.atlassian.net/browse/PERF-2052.

  • We want to add new rows to trace views for traces that contain orphan errors. Currently the trace endpoint ignores orphan errors.
    tracing_without_perf (1)

  • This PR aims to append orphan errors to the response of the trace endpoint and should work for both scenarios:

    • Only errors in trace (Scenario 3 from image above).
    • Mixup of errors and transactions (Scenario 2 from image above).
  • Returning event_type:"error" and generation:0 with all errors, to help us identify the orphan errors in the frontend and always group them under the first generation.

  • Added tests for both scenarios.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 3, 2023
@Abdkhan14 Abdkhan14 marked this pull request as ready for review August 3, 2023 15:38
@Abdkhan14 Abdkhan14 requested a review from a team as a code owner August 3, 2023 15:38
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #54103 (1a9d6d4) into master (9d2000a) will decrease coverage by 0.01%.
Report is 15 commits behind head on master.
The diff coverage is 76.47%.

❗ Current head 1a9d6d4 differs from pull request most recent head b906096. Consider uploading reports for the commit b906096 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #54103      +/-   ##
==========================================
- Coverage   79.60%   79.60%   -0.01%     
==========================================
  Files        4983     4983              
  Lines      210531   210543      +12     
  Branches    35846    35851       +5     
==========================================
+ Hits       167593   167597       +4     
- Misses      37795    37801       +6     
- Partials     5143     5145       +2     
Files Changed Coverage Δ
static/app/utils/discover/fieldRenderers.tsx 74.33% <ø> (ø)
static/app/utils/formatters.tsx 96.46% <ø> (-0.10%) ⬇️
...views/performance/landing/chart/histogramChart.tsx 12.12% <ø> (ø)
static/app/views/performance/landing/utils.tsx 57.81% <ø> (ø)
...transactionSummary/transactionVitals/vitalCard.tsx 54.54% <ø> (ø)
.../sentry/api/endpoints/organization_events_trace.py 89.27% <76.47%> (-0.62%) ⬇️

... and 6 files with indirect coverage changes

Copy link
Member

@k-fish k-fish left a comment

Choose a reason for hiding this comment

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

Aside from my suggestion to minimize passed params, looks good 👍

src/sentry/api/endpoints/organization_events_trace.py Outdated Show resolved Hide resolved
Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

+1 to Kevan's comment. Nice changes!

…g number of params being passed to serializer.
@Abdkhan14 Abdkhan14 enabled auto-merge (squash) August 3, 2023 17:00
@Abdkhan14 Abdkhan14 merged commit bb04ef4 into master Aug 3, 2023
55 checks passed
@Abdkhan14 Abdkhan14 deleted the abdkhan/tracing-w/o-performance-backend branch August 3, 2023 17:33
@sentry-io
Copy link

sentry-io bot commented Aug 4, 2023

Suspect Issues

This pull request has been deployed and Sentry observed the following issues:

  • ‼️ AssertionError: assert {'event_id': '3ca762903e854511946218a137e63bce', 'event_type': 'error', 'generation': 0, '... pytest.runtest.protocol tests/snuba/api/endpoin... View Issue
  • ‼️ AssertionError: assert {'event_id': 'e3756f07029f455ebff69534b0b00b1e', 'event_type': 'error', 'generation': 0, '... pytest.runtest.protocol tests/snuba/api/endpoin... View Issue
  • ‼️ AssertionError: assert {'event_id': '63aa8568245f429caf499d23cd868b40', 'issue_id': 48, 'span': '0076af953b694a66... pytest.runtest.protocol tests/snuba/api/endpoin... View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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