# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Metrics module Instrument # No-op implementation of Gauge. class Gauge # Record the current value for the Gauge # # @param [Numeric] amount The current absolute value. # @param [Hash{String => String, Numeric, Boolean, Array}] 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: {}); end end end end end