Skip to content

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)

@linux-foundation-easycla
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
garoazinha pushed a commit to garoazinha/opentelemetry-ruby that referenced this pull request Jan 15, 2025
…nto issues-1783

* 'main' of github.com:open-telemetry/opentelemetry-ruby:
  release: Release 3 gems (open-telemetry#1791)
  docs: add documentation for Metrics API instruments (open-telemetry#1720)
  docs: use link-inspector (open-telemetry#1790)
  feat: Gauge metrics exporter encoding (open-telemetry#1780)
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