Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joshwestbrook
Copy link

@joshwestbrook joshwestbrook commented Dec 16, 2024

Support exporting gauge metrics from OTLP::Metrics::MetricsExporter now that support for Gauge instruments in metrics_sdk has been added (#1718)

Copy link

linux-foundation-easycla bot commented Dec 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@joshwestbrook
Copy link
Author

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
Copy link
Contributor

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.

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants