Interface ExtendedLongUpDownCounter

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

public interface ExtendedLongUpDownCounter extends io.opentelemetry.api.metrics.LongUpDownCounter
Extended LongUpDownCounter with experimental APIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if the up down counter is enabled.

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

    add, add, add
  • Method Details

    • isEnabled

      default boolean isEnabled()
      Returns true if the up down counter is enabled.

      This allows callers to avoid unnecessary compute when nothing is consuming the data. Because the response is subject to change over the application, callers should call this before each call to LongUpDownCounter.add(long), LongUpDownCounter.add(long, Attributes), or LongUpDownCounter.add(long, Attributes, Context).