feat: Gauge metrics exporter encoding#1780
Merged
kaylareopelle merged 3 commits intoopen-telemetry:mainfrom Jan 8, 2025
Merged
feat: Gauge metrics exporter encoding#1780kaylareopelle merged 3 commits intoopen-telemetry:mainfrom
kaylareopelle merged 3 commits intoopen-telemetry:mainfrom
Conversation
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 |
Contributor
There was a problem hiding this comment.
Is that possible to combine :observable_gauge and :gauge something like when :observable_gauge, :gauge since they are using same Proto::Metrics::V1::Gauge.
Contributor
Author
There was a problem hiding this comment.
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
Contributor
There was a problem hiding this comment.
Ah, make sense, thanks!
kaylareopelle
approved these changes
Jan 8, 2025
Contributor
kaylareopelle
left a comment
There was a problem hiding this comment.
Thanks, @joshwestbrook!
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support exporting gauge metrics from
OTLP::Metrics::MetricsExporternow that support forGaugeinstruments inmetrics_sdkhas been added (#1718)