add method

void add(
  1. T value, [
  2. Attributes? attributes
])

Adds a value to the counter's sum.

The value can be positive or negative.

value The increment amount, can be positive or negative. attributes The set of attributes to associate with this value.

Implementation

void add(T value, [Attributes? attributes]) {
  // Base implementation is a no-op
}