-
How can the situation be handled when the given sensor is not working but the ObservableGauge instrument callback SHOULD return something? In this case I don't want to push these dummy data to OTEL collector and create timeseries data. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Observable instruments manage their own time series. Put another way, if an observable instrument stops observing values for a particular series, that series should not show up in the metrics exported by the SDK. In your case, this means that when the sensor is not working, the instrument simply shouldn't observe any measurements. |
Beta Was this translation helpful? Give feedback.
-
@jack-berg I got the answer here: open-telemetry/opentelemetry-dotnet#3460 |
Beta Was this translation helpful? Give feedback.
Observable instruments manage their own time series. Put another way, if an observable instrument stops observing values for a particular series, that series should not show up in the metrics exported by the SDK. In your case, this means that when the sensor is not working, the instrument simply shouldn't observe any measurements.