A counter instrument that tracks cumulative values.

Constructors

Methods

Constructors

Methods

  • Add a value to the counter.

    Parameters

    • value: number
    • attributes: Record<string, unknown> = {}

    Returns void

  • Get the current value.

    Returns number

  • Reset the counter (useful for testing).

    Returns void