Sha256: fe62eeab5a3e871fa58ccad9d90f214f3313243d14cf8840b1ad75c04e7f2bc0

Contents?: true

Size: 723 Bytes

Versions: 6

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  module SDK
    module Metrics
      module Instrument
        # {ObservableUpDownCounter} is the SDK implementation of {OpenTelemetry::Metrics::ObservableUpDownCounter}.
        class ObservableUpDownCounter < OpenTelemetry::Metrics::Instrument::ObservableUpDownCounter
          attr_reader :name, :unit, :description

          def initialize(name, unit, description, callback, meter)
            @name = name
            @unit = unit
            @description = description
            @callback = callback
            @meter = meter
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opentelemetry-metrics-sdk-0.5.0 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb
opentelemetry-metrics-sdk-0.4.1 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb
opentelemetry-metrics-sdk-0.4.0 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb
opentelemetry-metrics-sdk-0.3.0 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb
opentelemetry-metrics-sdk-0.2.0 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb
opentelemetry-metrics-sdk-0.1.0 lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb