Class: OpenTelemetry::Metrics::Instruments::IntegerCounter

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

Overview

An integer counter instrument.

Instance Method Summary collapse

Instance Method Details

#add(value, labels = {}) ⇒ Object



43
# File 'lib/opentelemetry/metrics/instruments.rb', line 43

def add(value, labels = {}); end

#handle(labels = {}) ⇒ Handles::IntegerCounter

Obtain a handle from the instrument and labels.



49
50
51
# File 'lib/opentelemetry/metrics/instruments.rb', line 49

def handle(labels = {})
  Handles::IntegerCounter.new
end

#measurement(value) ⇒ Object, Measurement

Return a measurement to be recorded via Meter#record_batch.



57
58
59
# File 'lib/opentelemetry/metrics/instruments.rb', line 57

def measurement(value)
  NOOP_MEASUREMENT
end