Support .NET 9 Synchronous Gauge #4805
Labels
enhancement
New feature or request
metrics
Metrics signal related
needs-runtime-change
Issues which likely require changes from dotnet runtime - typically DiagnosticSource package
Milestone
Feature Request
It would be great for synchronous gauge support to be added, now that it has been added to Experimental spec.
Is your feature request related to a problem?
Use cases are described here: open-telemetry/opentelemetry-specification#2318.
Describe the solution you'd like
I would expect to have a method in the class Meter called CreateObservableGauge() along with the class Gauge. They should behave like the ObservableGauge instrument, but being synchronous instead of asynchronous.
This is described as an experimental feature in the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#gauge
Describe alternatives you've considered
Both UpDownCounter and ObservableGauge do not work for my usecases.
Additional context
The text was updated successfully, but these errors were encountered: