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(vsts): vsts installation step metrics #80789

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

cathteng
Copy link
Member

@cathteng cathteng commented Nov 14, 2024

Adds lifecycle metrics for VSTS installation: AccountConfigView and exchange_token (there are metrics being emitted in the superclass's exchange_token but not in the classes here that override it).

@cathteng cathteng requested review from a team as code owners November 14, 2024 22:09
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 14, 2024
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 85.29412% with 5 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/identity/vsts/provider.py 71.42% 2 Missing and 2 partials ⚠️
src/sentry/integrations/vsts/integration.py 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #80789   +/-   ##
=======================================
  Coverage   78.39%   78.39%           
=======================================
  Files        7206     7206           
  Lines      319443   319449    +6     
  Branches    43994    43994           
=======================================
+ Hits       250427   250435    +8     
+ Misses      62634    62631    -3     
- Partials     6382     6383    +1     

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.

lgtm, question around removing the log since i don't think the lifecycle replaces it.

user = get_user_info(access_token)

accounts = self.get_accounts(access_token, user["uuid"])
logger.info(
Copy link
Member

Choose a reason for hiding this comment

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

do security or anyone use this log?

Copy link
Member Author

Choose a reason for hiding this comment

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

i'm logging it as extra when we return the HTML template when there are no accounts. also emitting a failure there
https://github.com/getsentry/sentry/pull/80789/files#diff-ea1561c3fe6fedfc28168b76c65f65681c9efc769d6adbb617d99afaa598e867R665

@cathteng cathteng merged commit 46e2146 into master Nov 25, 2024
49 of 50 checks passed
@cathteng cathteng deleted the cathy/vsts/installation-step-metrics branch November 25, 2024 17:25
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 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.

3 participants