-
Notifications
You must be signed in to change notification settings - Fork 440
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
Ostream metric exporter #1196
Ostream metric exporter #1196
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1196 +/- ##
==========================================
- Coverage 92.99% 92.96% -0.02%
==========================================
Files 196 196
Lines 7038 7040 +2
==========================================
Hits 6544 6544
- Misses 494 496 +2
|
* @param records a span of unique pointers to metrics recordables | ||
*/ | ||
sdk::common::ExportResult Export( | ||
const nostd::span<std::unique_ptr<opentelemetry::sdk::metrics::Recordable>> &records) noexcept |
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.
Can we modify this class, and the base class to accept span of MetricData instead of recordable?
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.
Done
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.
LGTM. Thanks for adding it.
…etry-cpp into ostream-metrics-exporter
related to #1091 and #1092 (issue)
For a Metric Reader implementation e.g. Periodic exporting MetricReader
we need a metric exporter.
Changes
This PR implements basic ostream metric exporter based on the current api.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes