Sha256: 52f213a0b0b3bf7a07e72e65c83e15fac1063776bfa1b2ade544fd90592cc9d8

Contents?: true

Size: 821 Bytes

Versions: 1

Compression:

Stored size: 821 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module Metrics
    module Instrument
      # No-op implementation of Histogram.
      class Histogram
        # Updates the statistics with the specified amount.
        #
        # @param [numeric] amount The amount of the Measurement, which MUST be a non-negative numeric value.
        # @param [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes
        #   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).
        def record(amount, attributes: nil); end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opentelemetry-metrics-api-0.1.0 lib/opentelemetry/metrics/instrument/histogram.rb