Sha256: 80c220e76c8fc5d5b5bcb379064aa8d448c112ba2d3cd6019e1726ae624c1ffd

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  module SDK
    module Metrics
      module Instrument
        # {ObservableGauge} is the SDK implementation of {OpenTelemetry::Metrics::ObservableGauge}.
        class ObservableGauge < OpenTelemetry::Metrics::Instrument::ObservableGauge
          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_gauge.rb
opentelemetry-metrics-sdk-0.4.1 lib/opentelemetry/sdk/metrics/instrument/observable_gauge.rb
opentelemetry-metrics-sdk-0.4.0 lib/opentelemetry/sdk/metrics/instrument/observable_gauge.rb
opentelemetry-metrics-sdk-0.3.0 lib/opentelemetry/sdk/metrics/instrument/observable_gauge.rb
opentelemetry-metrics-sdk-0.2.0 lib/opentelemetry/sdk/metrics/instrument/observable_gauge.rb
opentelemetry-metrics-sdk-0.1.0 lib/opentelemetry/sdk/metrics/instrument/observable_gauge.rb