Class: OpenTelemetry::Metrics::Instrument::Histogram

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

Overview

No-op implementation of Histogram.

Instance Method Summary collapse

Instance Method Details

#record(amount, attributes: nil) ⇒ Object

Updates the statistics with the specified amount.

Parameters:

  • amount (numeric)

    The amount of the Measurement, which MUST be a non-negative numeric value.

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

    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/histogram.rb', line 19

def record(amount, attributes: nil); end