Skip to content

Add Synchronous Gauge instrument to the metrics API/SDK #2279

@fgallegosalido

Description

@fgallegosalido

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 called CreateInt64Gauge() and CreateDoubleGauge() along with the template class Gauge. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalebreaking changeAPI or ABI breaking changedo-not-stalehelp wantedGood for taking. Extra help will be provided by maintainerstriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions