OpenTelemetry SDK
    Preparing search index...

    An interface to allow the recording metrics.

    Metrics are used for recording pre-defined aggregation (Counter), or raw values (Histogram) in which the aggregation and attributes for the exported metric are deferred.

    1.3.0

    interface Meter {
        addBatchObservableCallback<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            callback: @opentelemetry/api.BatchObservableCallback<AttributesTypes>,
            observables: @opentelemetry/api.Observable<AttributesTypes>[],
        ): void;
        createCounter<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.Counter<AttributesTypes>;
        createGauge<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.Gauge<AttributesTypes>;
        createHistogram<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.Histogram<AttributesTypes>;
        createObservableCounter<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.ObservableCounter<AttributesTypes>;
        createObservableGauge<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.ObservableGauge<AttributesTypes>;
        createObservableUpDownCounter<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.ObservableUpDownCounter<AttributesTypes>;
        createUpDownCounter<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            name: string,
            options?: @opentelemetry/api.MetricOptions,
        ): @opentelemetry/api.UpDownCounter<AttributesTypes>;
        removeBatchObservableCallback<
            AttributesTypes extends
                @opentelemetry/api.Attributes = @opentelemetry/api.Attributes,
        >(
            callback: @opentelemetry/api.BatchObservableCallback<AttributesTypes>,
            observables: @opentelemetry/api.Observable<AttributesTypes>[],
        ): void;
    }
    Index

    Methods