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(grouping): Add metrics for issue merging and unmerging #52919

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jul 14, 2023

This adds DataDog metrics for instances of issues being merged and unmerged. Both metrics include the issues' platform, and the merge metric additionally includes referer (since you can merge from either the issue stream or the Similar Issues tab). A few missing merge-related tests were also added.

Note: I was originally going to include the number of issues being merged as extra data for the merging metric, but it occurred to me that people are more likely to merge in new issues as they appear rather than wait and merge all the issues at once, so I removed it. We can revisit this later if necessary.

Ref: #52920
Ref: #52922

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 14, 2023
@lobsterkatie lobsterkatie force-pushed the kmclb-add-issue-merging-metric branch from 4bc4ce9 to fae89c2 Compare July 14, 2023 21:15
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #52919 (4c1d292) into master (3ceb12e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #52919   +/-   ##
=======================================
  Coverage   79.37%   79.37%           
=======================================
  Files        4934     4934           
  Lines      207215   207223    +8     
  Branches    35403    35403           
=======================================
+ Hits       164481   164493   +12     
+ Misses      37704    37701    -3     
+ Partials     5030     5029    -1     
Impacted Files Coverage Δ
src/sentry/api/endpoints/group_hashes.py 87.87% <100.00%> (+0.78%) ⬆️
src/sentry/api/helpers/group_index/update.py 90.09% <100.00%> (+0.84%) ⬆️

... and 3 files with indirect coverage changes

Copy link
Member

@armenzg armenzg left a comment

Choose a reason for hiding this comment

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

Always such an excellent job at testing!

@@ -61,6 +62,13 @@ def delete(self, request: Request, group) -> Response:
if not hash_list:
return Response()

metrics.incr(
"grouping.unmerge_issues",
Copy link
Member

Choose a reason for hiding this comment

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

I'm really interested on knowing how many people actually unmerge.

@lobsterkatie lobsterkatie merged commit cafa5df into master Jul 17, 2023
@lobsterkatie lobsterkatie deleted the kmclb-add-issue-merging-metric branch July 17, 2023 19:51
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 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.

2 participants