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

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

joshwestbrook
Copy link
Contributor

@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
Contributor 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
Contributor 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

Copy link
Contributor

@xuan-cao-swi xuan-cao-swi Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, make sense, thanks!

Copy link
Contributor

@xuan-cao-swi xuan-cao-swi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @joshwestbrook!

@kaylareopelle kaylareopelle merged commit 6099f79 into open-telemetry:main Jan 8, 2025
66 checks passed
@github-actions github-actions bot mentioned this pull request Jan 8, 2025
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.

3 participants