Sha256: bd62334291ba752b206191c686e008dd93150319a1ff80dfcf577c1fd1d29d6b

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

# Copyright The 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

7 entries across 7 versions & 1 rubygems

Version Path
opentelemetry-api-0.16.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.15.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.14.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.13.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.12.1 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.12.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-api-0.11.0 lib/opentelemetry/metrics/meter_provider.rb