Interface that is being used in batch observable callback function.

interface BatchObservableResult<
    AttributesTypes extends
        @opentelemetry/api.MetricAttributes = @opentelemetry/api.MetricAttributes,
> {
    observe(
        this: @opentelemetry/api.BatchObservableResult<AttributesTypes>,
        metric: @opentelemetry/api.Observable<AttributesTypes>,
        value: number,
        attributes?: AttributesTypes,
    ): void;
}

Type Parameters

Methods

Methods