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

109 adjust sentry upload metrics #699

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

adrian-codecov
Copy link
Contributor

I'm adding/adjusting some metrics in the main api upload endpoints to track how often they're called with respect to shelter. Shelter already tracks these as well, https://github.com/codecov/shelter/blob/32f04439fb0d88d0a621f153993f1f264bb29102/upload-ingress/main.py#L41, so you can use Sentry's metrics tab to compare the amount request each gets. This PR is to add a call at the beginning of the call itself and then adjust the current one to represent the "end" of the part we're tracking

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@adrian-codecov adrian-codecov requested a review from a team as a code owner July 19, 2024 21:16
@codecov-staging
Copy link

codecov-staging bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.61%. Comparing base (f3d4bdc) to head (2e0ca33).

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main     #699   +/-   ##
=======================================
  Coverage   91.60%   91.61%           
=======================================
  Files         631      631           
  Lines       16841    16846    +5     
=======================================
+ Hits        15428    15433    +5     
  Misses       1413     1413           
Flag Coverage Δ
unit 91.61% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.61% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
upload/views/commits.py 97.29% <100.00%> (+0.15%) ⬆️
upload/views/legacy.py 95.07% <ø> (ø)
upload/views/reports.py 100.00% <100.00%> (ø)
upload/views/uploads.py 99.06% <100.00%> (+<0.01%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link

codecov-public-qa bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.61%. Comparing base (f3d4bdc) to head (2e0ca33).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #699   +/-   ##
=======================================
  Coverage   91.60%   91.61%           
=======================================
  Files         631      631           
  Lines       16841    16846    +5     
=======================================
+ Hits        15428    15433    +5     
  Misses       1413     1413           
Flag Coverage Δ
unit 91.61% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.61% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
upload/views/commits.py 97.29% <100.00%> (+0.15%) ⬆️
upload/views/legacy.py 95.07% <ø> (ø)
upload/views/reports.py 100.00% <100.00%> (ø)
upload/views/uploads.py 99.06% <100.00%> (+<0.01%) ⬆️

Impacted file tree graph

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.97%. Comparing base (f3d4bdc) to head (2e0ca33).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##               main       #699   +/-   ##
===========================================
  Coverage   95.97000   95.97000           
===========================================
  Files           811        811           
  Lines         18178      18183    +5     
===========================================
+ Hits          17446      17451    +5     
  Misses          732        732           
Flag Coverage Δ
unit 91.61% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.61% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adrian-codecov adrian-codecov added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit e681bae Jul 19, 2024
21 of 22 checks passed
@adrian-codecov adrian-codecov deleted the 109-adjust-sentry-upload-metrics branch July 19, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants