-
Notifications
You must be signed in to change notification settings - Fork 251
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
feat: Gauge metrics exporter encoding #1780
feat: Gauge metrics exporter encoding #1780
Conversation
FYI @xuan-cao-swi since I just noticed that you mentioned you would open a PR for this on your SDK PR 😄 |
# | ||
# metrics [MetricData] | ||
def as_otlp_metrics(metrics) | ||
case metrics.instrument_kind | ||
when :gauge |
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.
Is that possible to combine :observable_gauge
and :gauge
something like when :observable_gauge, :gauge
since they are using same Proto::Metrics::V1::Gauge
.
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.
Yeah I split them out because Proto::Metrics::V1::Gauge
doesn't actually implement aggregation_temporality
. Seems like that was just a mistake in the :observable_gauge
implementation 😋 c32f2c0
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.
Ah, make sense, thanks!
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.
Thanks!
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.
Thanks, @joshwestbrook!
Support exporting gauge metrics from
OTLP::Metrics::MetricsExporter
now that support forGauge
instruments inmetrics_sdk
has been added (#1718)