-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor metrics #590
Refactor metrics #590
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #590 +/- ##
==========================================
+ Coverage 66.04% 67.06% +1.02%
==========================================
Files 103 104 +1
Lines 7509 7405 -104
==========================================
+ Hits 4959 4966 +7
+ Misses 2256 2143 -113
- Partials 294 296 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, otherwise looks good ! Thanks @KalmanMeth
info *encode.MetricInfo | ||
} | ||
*/ | ||
const defaultExpiryTime = time.Duration(2 * time.Minute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to keep this outside of metrics_common
?
pkg/pipeline/encode/encode_prom.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move this file under a new prometheus
folder ?
Co-authored-by: Julien Pinsonneau <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Description
Refactor Metrics code so that it is common for Prometheus and OpenTelemetry metrics.
This removes duplicate code and now gives us the implementation for OpenTelemetry histograms.
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.