1.3.0

interface Observable<
    AttributesTypes extends
        @opentelemetry/api.MetricAttributes = @opentelemetry/api.MetricAttributes,
> {
    addCallback(
        callback: @opentelemetry/api.ObservableCallback<AttributesTypes>,
    ): void;
    removeCallback(
        callback: @opentelemetry/api.ObservableCallback<AttributesTypes>,
    ): void;
}

Type Parameters

Methods