Class: OpenTelemetry::Metrics::Instrument::Counter

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/metrics/instrument/counter.rb

Overview

No-op implementation of Counter.

Instance Method Summary collapse

Instance Method Details

#add(increment, attributes: {}) ⇒ Object

Increment the Counter by a fixed amount.

Parameters:

  • increment (numeric)

    The increment amount, which MUST be a non-negative numeric value.

  • attributes (Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}) (defaults to: {})

    Values must be non-nil and (array of) string, boolean or numeric type. Array values must not contain nil elements and all elements must be of the same basic type (string, numeric, boolean).



19
# File 'lib/opentelemetry/metrics/instrument/counter.rb', line 19

def add(increment, attributes: {}); end