-
Notifications
You must be signed in to change notification settings - Fork 16
feat(controller): prometheus metrics for git and SCM operations (#117) #255
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
base: main
Are you sure you want to change the base?
Conversation
…proj-labs#117) Signed-off-by: Michael Crenshaw <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
==========================================
- Coverage 50.64% 49.80% -0.84%
==========================================
Files 14 15 +1
Lines 1779 1809 +30
==========================================
Hits 901 901
- Misses 759 789 +30
Partials 119 119 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Looking good:
And for rate limits:
|
Signed-off-by: Michael Crenshaw <[email protected]>
Nice work! Something like:
And then using it like:
I guess creating a RoundTripper could also be a viable approach for that. Could also offer to create a dedicated refactor PR of that after the merge of that one. |
Signed-off-by: Michael Crenshaw <[email protected]>
That could be a good refactor in the future... I think the duplication is probably kinda-alright for now. A round tripper would be interesting. It could get us nicer metrics for, e.g., the token fetch call which is currently obstructed by the go client. |
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Partially implements #117