Replies: 1 comment 8 replies
-
The values are set by the SDK. Why do you think the values are wrong? Please see: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md#gauge |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Int64ObservableGauge instrument with callback (RegisterCallback) to record a metric with NewPeriodicReader and export it to otel collector. Below is the code on how am doing it:
But with all the metric being sent i see the startTimeUnixNano is always set to "11651379494838206464", however the timeUnixNano is set properly.
excerpt from the oltp.json
Earlier we were using meter.AsyncInt64().Gauge from v0.31.0 version of go.opentelemetry.io/otel/metric and the startTimeUnixNano was populated with the same value as that of timeUnixNano.
I could not find a way to set the value of startTimeUnixNano, could you please guide on fixing this?
Thanks & regards,
Anil
Beta Was this translation helpful? Give feedback.
All reactions