-
Notifications
You must be signed in to change notification settings - Fork 938
Add metrics for PeriodicMetricReader #8038
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
|
|
||
| /** | ||
| * Sets the {@link MeterProvider} to export metrics about this {@link PeriodicMetricReader} to. | ||
| * Automatically called by the meter provide the reader is registered to. |
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.
Couldn't think of a reason to not do this
| try { | ||
| metricData = collectionRegistration.collectAllMetrics(); | ||
| } catch (Throwable t) { | ||
| error = t.getClass().getName(); |
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.
Not sure if this is actually possible in practice
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8038 +/- ##
============================================
+ Coverage 90.16% 90.18% +0.01%
- Complexity 7478 7485 +7
============================================
Files 834 835 +1
Lines 22559 22602 +43
Branches 2239 2241 +2
============================================
+ Hits 20341 20384 +43
- Misses 1515 1518 +3
+ Partials 703 700 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This adds the last SDK metric, for the metric reader. Been a while since previous PR since I forgot about it 😅
https://opentelemetry.io/docs/specs/semconv/otel/sdk-metrics/#metric-otelsdkmetric_readercollectionduration