Interface Counter<AttributesTypes>

Counter is the most common synchronous instrument. This instrument supports an Add(increment) function for reporting a sum, and is restricted to non-negative increments. The default aggregation is Sum, as for any additive instrument.

Example uses for Counter:

  1. count the number of bytes received.
  2. count the number of requests completed.
  3. count the number of accounts created.
  4. count the number of checkpoints run.
  5. count the number of 5xx errors.

    Type Parameters

    Hierarchy

    • Counter

    Methods

    Methods

    • Increment value of counter by the input. Inputs must not be negative.

      Parameters

      • value: number
      • Optional attributes: AttributesTypes
        Optional
      • Optional context: Context
        Optional

      Returns void

    Generated using TypeDoc