Class: OpenTelemetry::Metrics::Instruments::FloatMeasure

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

Overview

A float measure instrument.

Instance Method Summary collapse

Instance Method Details

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

Obtain a handle from the instrument and labels.

Parameters:

  • labels (optional Hash<String, String>) (defaults to: {})

    A Hash of Strings.

Returns:



70
71
72
# File 'lib/opentelemetry/metrics/instruments.rb', line 70

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

#measurement(value) ⇒ Object, Measurement

Return a measurement to be recorded via Meter#record_batch.

Parameters:

  • value (Float)

Returns:

  • (Object, Measurement)


78
79
80
# File 'lib/opentelemetry/metrics/instruments.rb', line 78

def measurement(value)
  NOOP_MEASUREMENT
end

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



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

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