Class: OpenTelemetry::Metrics::Instrument::ObservableGauge

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

Overview

No-op implementation of ObservableGauge.

Instance Method Summary collapse

Instance Method Details

#observe(timeout: nil, attributes: {}) ⇒ Object

Observe the ObservableGauge with fixed timeout duration.

Parameters:

  • timeout (int) (defaults to: nil)

    The timeout duration for callback to run, 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/observable_gauge.rb', line 19

def observe(timeout: nil, attributes: {}); end