Interface WriteableMetricStorage

All Known Subinterfaces:
SynchronousMetricStorage
All Known Implementing Classes:
DefaultSynchronousMetricStorage, EmptyMetricStorage, SdkMeter.MultiWritableMetricStorage

public interface WriteableMetricStorage
Stores MetricData and allows synchronous writes of measurements.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the storage is actively recording measurements, and false otherwise (i.e.
    void
    recordDouble(double value, Attributes attributes, Context context)
    Records a measurement.
    void
    recordLong(long value, Attributes attributes, Context context)
    Records a measurement.
  • Method Details

    • recordLong

      void recordLong(long value, Attributes attributes, Context context)
      Records a measurement.
    • recordDouble

      void recordDouble(double value, Attributes attributes, Context context)
      Records a measurement.
    • isEnabled

      boolean isEnabled()
      Returns true if the storage is actively recording measurements, and false otherwise (i.e. noop / empty metric storage is installed).