Class: OpenTelemetry::Metrics::Instrument::Gauge

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

Overview

No-op implementation of Gauge.

Instance Method Summary collapse

Instance Method Details

#record(amount, attributes: {}) ⇒ Object

Record the current value for the Gauge

Parameters:

  • amount (Numeric)

    The current absolute 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/gauge.rb', line 19

def record(amount, attributes: {}); end