Add Synchronous Gauge instrument to the metrics API/SDK #2279
Labels
breaking change
API or ABI breaking change
do-not-stale
Stale
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Before opening a feature request against this repo, consider whether the feature should/could be implemented in the other OpenTelemetry client libraries. If so, please open an issue on opentelemetry-specification first.
Is your feature request related to a problem?
There's plenty of use cases described in the specification issue.
Describe the solution you'd like
I expect to have two new functions in the class
Meter
calledCreateInt64Gauge()
andCreateDoubleGauge()
along with the template classGauge
. They should behave like the ObservableGauge instrument, but being synchronous instead of asynchronous.Describe alternatives you've considered
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
Additional context
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered: