-
Notifications
You must be signed in to change notification settings - Fork 515
Add OStream metrics exporter #218
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
Add OStream metrics exporter #218
Conversation
|
@reyang @pyohannes This PR should be ready for review and can be merged once the Sketch Aggregator is merged. |
…mphries/opentelemetry-cpp into stream-metrics-exporter
| auto agg = nostd::get<std::shared_ptr<sdkmetrics::Aggregator<T>>>(value); | ||
| auto aggKind = agg->get_aggregator_kind(); | ||
|
|
||
| if (agg != nullptr) |
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.
Could we simply the flow here:
- short circuit if
agg == nullptr. - use
switch casefor the conditions.
So the flow would look like:
if (!agg) return;
switch (aggKind) {
case x:
// do something
break;
}
reyang
left a comment
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 with minor suggestions.
|
Addressed comments and rebased @reyang Let me know if I didn't address your comments correctly. |
|
Design document can be found here |
chore(deps): update dependency ubuntu to v24
This PR implements the OStream Exporter for the metrics data pipeline. This MetricsExporter takes data in from the Controller in the form of Records. The exporter then takes the records and gets all of the relevant data out of it and sends it to an ostream. The default configuration is to send the recordable data to stdout. Unlike SpanExporters, metrics exporters are currently not required to implement a Shutdown() function.
This PR contains a lot of code from PRs currently open. These should either be removed from this PR before merging or should be merged before this one is. Please only review the exporter portion of this PR and redirect all feedback on Aggregators to their specific PRs.
CI Tests were not running on the old PR, so I made a new one.