Interface BoundDoubleUpDownCounter


@ThreadSafe public interface BoundDoubleUpDownCounter
An up-down-counter instrument with pre-bound attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(double value)
    Records a value with pre-bound attributes.
    void
    add(double value, io.opentelemetry.context.Context context)
    Records a value with a pre-bound attributes.
    void
    Unbinds the current bound instance from the DoubleUpDownCounter.
  • Method Details

    • add

      void add(double value)
      Records a value with pre-bound attributes.

      Note: This may use Context.current() to pull the context associated with this measurement.

      Parameters:
      value - The increment amount. May be positive, negative or zero.
    • add

      void add(double value, io.opentelemetry.context.Context context)
      Records a value with a pre-bound attributes.
      Parameters:
      value - The increment amount. May be positive, negative or zero.
      context - The explicit context to associate with this measurement.
    • unbind

      void unbind()
      Unbinds the current bound instance from the DoubleUpDownCounter.

      After this method returns the current instance is considered invalid (not being managed by the instrument).