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(spans): Tag perf problems created from standalone spans #66325

Merged

Conversation

shruthilayaj
Copy link
Member

@shruthilayaj shruthilayaj commented Mar 5, 2024

As we set up the application logic to run performance issue detection
on standalone spans, we want to collect metrics to check if transaction
based and span based perf issue detection are equivalent. Tagging
metrics with is_standalone_spans to track this.
This also updates fingerprint so the standalone span occurrences
don't get grouped with existing perf issues during testing.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 5, 2024
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.

Looks good although we probably want the span group-types to just fork the performance group types to keep things simple in the future.

@@ -85,7 +85,7 @@ def repeating_span():

assert (
job["performance_problems"][0].fingerprint
== "1-GroupType.PERFORMANCE_N_PLUS_ONE_DB_QUERIES-f906d576ffde8f005fd741f7b9c8a35062361e67"
== "1-GroupType.PERFORMANCE_N_PLUS_ONE_DB_QUERIES-f906d576ffde8f005fd741f7b9c8a35062361e67-1019"
Copy link
Member

Choose a reason for hiding this comment

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

lol @ GroupType.PERFORMANCE_N_PLUS_ONE_DB_QUERIES

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.29%. Comparing base (d94f239) to head (a426cc0).
Report is 193 commits behind head on master.

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #66325      +/-   ##
==========================================
+ Coverage   84.24%   84.29%   +0.04%     
==========================================
  Files        5294     5309      +15     
  Lines      236582   237228     +646     
  Branches    40962    41034      +72     
==========================================
+ Hits       199317   199965     +648     
+ Misses      37046    37044       -2     
  Partials      219      219              
Files Coverage Δ
src/sentry/tasks/spans.py 92.62% <100.00%> (+0.06%) ⬆️
src/sentry/testutils/cases.py 90.01% <100.00%> (+0.01%) ⬆️
.../utils/performance_issues/performance_detection.py 91.07% <100.00%> (+0.05%) ⬆️

... and 156 files with indirect coverage changes

@shruthilayaj shruthilayaj marked this pull request as ready for review March 5, 2024 18:35
@shruthilayaj shruthilayaj requested review from a team as code owners March 5, 2024 18:35
@shruthilayaj shruthilayaj requested a review from a team March 5, 2024 18:36
@shruthilayaj
Copy link
Member Author

Looks good although we probably want the span group-types to just fork the performance group types to keep things simple in the future.

This is just temporary as we test the pipeline, I want to collect some metrics so we are reasonably confident we're not introducing a ton of new fingerprints and catching more or less the same issues

@shruthilayaj shruthilayaj changed the title feat(spans): Update fingerprint standalone span perf problems feat(spans): Tag perf problems created from standalone spans Mar 6, 2024
@shruthilayaj shruthilayaj enabled auto-merge (squash) March 6, 2024 15:09
@shruthilayaj shruthilayaj merged commit a0de722 into master Mar 6, 2024
49 checks passed
@shruthilayaj shruthilayaj deleted the shruthi/feat/update-fingerprint-and-track-metric branch March 6, 2024 15:11
aliu3ntry pushed a commit that referenced this pull request Mar 6, 2024
As we set up the application logic to run performance issue detection
on standalone spans, we want to collect metrics to check if transaction
based and span based perf issue detection are equivalent. Tagging
metrics with `is_standalone_spans` to track this.
This also updates fingerprint so the standalone span occurrences 
don't get grouped with existing perf issues during testing.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2024
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.

None yet

2 participants