A meter that creates instruments.

Constructors

Methods

  • Create a counter instrument.

    Parameters

    • name: string
    • options: { description?: string; unit?: string } = {}

    Returns CounterInstrument

  • Create a gauge instrument.

    Parameters

    • name: string
    • options: { description?: string; unit?: string } = {}

    Returns GaugeInstrument

  • Create a histogram instrument.

    Parameters

    • name: string
    • options: { buckets?: number[]; description?: string; unit?: string } = {}

    Returns HistogramInstrument