Interface ExtendedDoubleUpDownCounter

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

public interface ExtendedDoubleUpDownCounter extends io.opentelemetry.api.metrics.DoubleUpDownCounter
Extended DoubleUpDownCounter with experimental APIs.
  • Method Summary

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

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

    add, add, add, isEnabled
  • Method Details

    • bind

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

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