Sha256: 4b2f83a7240af545d37cde21a9bbc4e8add3d4d943760d7d1f886644ccb69953
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 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 UpDownCounter. class UpDownCounter # Increment or decrement the UpDownCounter by a fixed amount. # # @param [Numeric] amount The amount to be added, can be positive, negative or zero. # @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 add(amount, attributes: {}); end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opentelemetry-metrics-api-0.2.0 | lib/opentelemetry/metrics/instrument/up_down_counter.rb |
opentelemetry-metrics-api-0.1.1 | lib/opentelemetry/metrics/instrument/up_down_counter.rb |