Skip to content

UpDownCounter is not a gauge #3493

@ai-zelenin

Description

@ai-zelenin

meter.AsyncFloat64().Counter acts like gauge so async approach i cant use(do not have counter)
meter.SyncFloat64() do not have gauge so i can not use sync approach

in this examaple

gauge, err := meter.SyncFloat64().UpDownCounter("bar", instrument.WithDescription("a fun little gauge"))

meter.SyncFloat64().UpDownCounter called gauge but
meter.SyncFloat64().UpDownCounter acts like counter

i feel there is some mistake here or too confusing and need some clarification

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:metricsPart of OpenTelemetry Metricspkg:exampleRelated to an example

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions