Interface ExtendedDoubleGauge

All Superinterfaces:
io.opentelemetry.api.metrics.DoubleGauge

public interface ExtendedDoubleGauge extends io.opentelemetry.api.metrics.DoubleGauge
Extended DoubleGauge with experimental APIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(io.opentelemetry.api.common.Attributes attributes)
    Binds this gauge to the given attributes, returning a BoundDoubleGauge that records to the corresponding timeseries directly.

    Methods inherited from interface io.opentelemetry.api.metrics.DoubleGauge

    isEnabled, set, set, set
  • Method Details

    • bind

      BoundDoubleGauge bind(io.opentelemetry.api.common.Attributes attributes)
      Binds this gauge to the given attributes, returning a BoundDoubleGauge that records to the corresponding timeseries directly.

      Binding resolves the underlying timeseries once, eliminating the per-recording attribute processing and map lookup performed by DoubleGauge.set(double, Attributes). Prefer this when the set of attribute combinations is known ahead of time and the same series is recorded to repeatedly.