A registry for creating named Meters.

1.3.0

interface MeterProvider {
    getMeter(name: string, version?: string, options?: MeterOptions): Meter;
}

Implemented by

Methods

Methods

  • Returns a Meter, creating one if one with the given name, version, and schemaUrl pair is not already created.

    Parameters

    • name: string

      The name of the meter or instrumentation library.

    • Optionalversion: string

      The version of the meter or instrumentation library.

    • Optionaloptions: MeterOptions

      The options of the meter or instrumentation library.

    Returns Meter

    Meter A Meter with the given name and version