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

chore(integrations): SourceCodeSearchEndpoint metrics #80956

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Nov 18, 2024

Add metrics to handle_search_issues, handle_search_repositories, and get.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 18, 2024
src/sentry/integrations/gitlab/search.py Dismissed Show dismissed Hide dismissed
src/sentry/integrations/gitlab/search.py Dismissed Show dismissed Hide dismissed
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 98.24561% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ntry/integrations/source_code_management/search.py 96.96% 1 Missing ⚠️
src/sentry/integrations/vsts/search.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #80956      +/-   ##
==========================================
+ Coverage   80.32%   80.33%   +0.01%     
==========================================
  Files        7215     7215              
  Lines      319443   319409      -34     
  Branches    20773    20773              
==========================================
+ Hits       256583   256604      +21     
+ Misses      62466    62411      -55     
  Partials      394      394              

Copy link
Member

@iamrajjoshi iamrajjoshi left a comment

Choose a reason for hiding this comment

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

where we record failure vs halt all lgtm, just a note about adding a reason for recording halts.

src/sentry/integrations/bitbucket/search.py Outdated Show resolved Hide resolved
src/sentry/integrations/source_code_management/metrics.py Outdated Show resolved Hide resolved
src/sentry/integrations/source_code_management/metrics.py Outdated Show resolved Hide resolved
Copy link
Member

@GabeVillalobos GabeVillalobos left a comment

Choose a reason for hiding this comment

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

Nice work! We just need a bit more context on the halt cases and we should be good to go.

src/sentry/integrations/bitbucket/search.py Outdated Show resolved Hide resolved
src/sentry/integrations/gitlab/search.py Outdated Show resolved Hide resolved
Comment on lines +64 to +65
assert halt1.args[0] == EventLifecycleOutcome.SUCCESS
assert halt2.args[0] == EventLifecycleOutcome.SUCCESS
Copy link
Member

Choose a reason for hiding this comment

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

Super minor naming Nit: these are success metrics, not halts

Copy link
Member

@iamrajjoshi iamrajjoshi left a comment

Choose a reason for hiding this comment

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

Spongebob Thumb

lgtm

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.

3 participants