Skip to content

otel/metric: godoc describing differences between Gauge and other metric types #4801

Open
@jmhodges

Description

@jmhodges

Problem Statement

It would be nice to write down what differs between a Gauge, an UpAndDownCounter, and a Counter near their definitions. The typing on their factory methods on Meter make it difficult to understand at a glance what each is for.

As an old hand, I can guess at which to use, but even I was hoping to a quick explainer to confirm what I believed about them.

Proposed Solution

Perhaps the Measurements section of otel/metics could get some more verbiage on when to use each one.

Alternatives

A link to a more descriptive doc could be added to Meter or the Measurements section instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationProvides helpful informationenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions