Interface ObservableResult<AttributesTypes>

Interface that is being used in callback function for Observable Metric.

interface ObservableResult<AttributesTypes> {
    observe(this, value, attributes?): void;
}

Type Parameters

Methods

Methods

  • Observe a measurement of the value associated with the given attributes.

    Parameters

    • this: ObservableResult<AttributesTypes>
    • value: number

      The value to be observed.

    • Optional attributes: AttributesTypes

      The attributes associated with the value. If more than one values associated with the same attributes values, SDK may pick the last one or simply drop the entire observable result.

    Returns void