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

metrics: update shared + add sentry traces to BranchContents GraphQL query path #251

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

matt-codecov
Copy link
Contributor

codecov/shared#81 updates shared to get this PR which adds traces to some report functions

also adds traces to various functions in the BranchContents GraphQL query resolution path to investigate https://github.com/codecov/internal-issues/issues/155

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.

@codecov-staging
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Patch % Lines
services/report.py 89.47% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Nov 15, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8f09643) 95.62% compared to head (623eacc) 95.62%.

Files Patch % Lines
services/report.py 89.47% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #251   +/-   ##
=======================================
  Coverage   95.62%   95.62%           
=======================================
  Files         605      605           
  Lines       15528    15541   +13     
=======================================
+ Hits        14848    14861   +13     
  Misses        680      680           
Flag Coverage Δ
unit 95.62% <92.59%> (+<0.01%) ⬆️
unit-latest-uploader 95.62% <92.59%> (+<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.

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8f09643) 95.53% compared to head (623eacc) 95.53%.

Files Patch % Lines
services/report.py 89.47% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #251   +/-   ##
=====================================
  Coverage   95.53   95.53           
=====================================
  Files        719     719           
  Lines      15935   15948   +13     
=====================================
+ Hits       15222   15235   +13     
  Misses       713     713           
Flag Coverage Δ
unit 95.62% <92.59%> (?)
unit-latest-uploader 95.62% <92.59%> (?)

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.

@matt-codecov matt-codecov merged commit 8f1d7d5 into main Nov 15, 2023
15 of 19 checks passed
@matt-codecov matt-codecov deleted the matt/add-sentry-traces branch November 15, 2023 22:05
scott-codecov added a commit that referenced this pull request Nov 17, 2023
* main:
  feat: Emit pubsub event when org token is updated (#241)
  perf: use new get_file_totals() report method for BranchContents (#252)
  feat: adjust benefits for team plan (#253)
  fix: Adjust Team plan pricing (#805) (#243)
  feat: Add Sentry user to admin panel (#702) (#232)
  metrics: update shared + add sentry traces to BranchContents GraphQL query path (#251)
  Use the same sentry version (#247)
  feat(logging): change access logging format to JSON (#249)
  Use alpine 3.18 (#245)
  fix(launchscripts): delete contents of prometheus multiproc dir, not dir itself (#244)
  Make migration info log less confusing (#221)
  Fix urllib and opentelemetry-instrumentation dependencies (#213)
  Updating workflows (#242)
  fix: Handle Shelter storage paths in upload download handler (#234)
  feat: Modify billing for Team plan (#637) (#225)
  fix: Upgrade Django version to fix security vulnerabilities (#239)
  Update small badge (#238)
  Send github oauth access token expiry with cookie (#237)
  fix: Skip login if GitHub OAuth does not return access_token (#236)
trent-codecov added a commit that referenced this pull request Nov 17, 2023
* metrics: update shared + add sentry traces to BranchContents GraphQL query path (#251)

* metrics: add sentry traces to BranchContents GraphQL query path

* update shared to use merge commit sha

* feat: Add Sentry user to admin panel (#702) (#232)


Add Sentry user to Django admin dashboard, can search and update Sentry user by name/email and link to the associated User object. Hides access/refresh token fields.

* fix: Adjust Team plan pricing (#805) (#243)

* feat: adjust benefits for team plan (#253)

* perf: use new get_file_totals() report method for BranchContents (#252)

* perf: use new get_file_totals() report method for BranchContents

* fix tests; update shared + expose fn on mock

* update shared to point at merge commit

* feat: Emit pubsub event when org token is updated (#241)

Co-authored-by: Trent Schmidt <trent@codecov.io>

* fix: Use GitHub integration access token when using GH app (#240)

* fix: Fallback to OAuth bot token when installation token fails (#255)

* fix: Fallback to OAuth bot token when installation token fails

* Rename test

* Shared update

---------

Co-authored-by: matt-codecov <137832199+matt-codecov@users.noreply.github.com>
Co-authored-by: JerrySentry <142266253+JerrySentry@users.noreply.github.com>
Co-authored-by: Adrian <adrian@codecov.io>
Co-authored-by: scott-codecov <scott@codecov.io>
ajay-sentry added a commit that referenced this pull request Mar 1, 2024
)

* update requirements file and 2 places in code with re2 library. Pre-test

* fix lint

* fix the docker image

* try this with updated build deps

* add back absl

* get rid of re2 references, use google-re2

* fix some UTs initially

* remove codecovapi instance

* push up a potential solve

* remove the google-re2 library in favor of regex, which supports a timeout that we have defaulted to 5 sec

* remove some more docker package stuff, revert back the test updates

* lint
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