@grow-codes/opentelemetry-collector - v0.1.1
    Preparing search index...

    Interface MetricsApi

    Creates instruments on meters of one provider (or the global one).

    interface MetricsApi {
        counter(name: string, options?: InstrumentOptions): Counter;
        gauge(name: string, options?: InstrumentOptions): Gauge;
        histogram(name: string, options?: HistogramOptions): Histogram;
        meter(name?: string, version?: string): Meter;
        upDownCounter(name: string, options?: InstrumentOptions): UpDownCounter;
    }

    Hierarchy (View Summary)

    Index
    • A meter from this provider.

      Parameters

      • Optionalname: string
      • Optionalversion: string

      Returns Meter