Sha256: b1b86297dabb80268dbe6cca222f72586ae63c95f11848319a988985c4a390f9

Contents?: true

Size: 537 Bytes

Versions: 9

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  module Metrics
    # No-op implementation of a meter provider.
    class MeterProvider
      # Returns a {Meter} instance.
      #
      # @param [optional String] name Instrumentation package name
      # @param [optional String] version Instrumentation package version
      #
      # @return [Meter]
      def meter(name = nil, version = nil)
        @meter ||= Meter.new
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
opentelemetry-api-0.10.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.9.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.8.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.7.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.6.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.5.1 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.5.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.4.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.3.0 lib/opentelemetry/metrics/meter_provider.rb