Interface ObservableDoubleMeasurement

All Superinterfaces:
ObservableMeasurement

public interface ObservableDoubleMeasurement extends ObservableMeasurement
An interface for observing measurements with double values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    observe(double value)
    Records a measurement.
    void
    observe(double value, io.opentelemetry.api.common.Attributes attributes)
    Records a measurement with a set of attributes.
  • Method Details

    • observe

      void observe(double value)
      Records a measurement.
      Parameters:
      value - The measurement amount. MUST be non-negative.
    • observe

      void observe(double value, io.opentelemetry.api.common.Attributes attributes)
      Records a measurement with a set of attributes.
      Parameters:
      value - The measurement amount. MUST be non-negative.
      attributes - A set of attributes to associate with the count.