Sha256: 73ee87be40c1e9466e3060ea582e00edfc13c0ac2685b49d43453b1ec906301a

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 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 [String] name Instrumentation package name
      # @param [optional String] version Instrumentation package version
      #
      # @return [Meter]
      def meter(name, version: nil)
        @meter ||= Meter.new
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opentelemetry-metrics-api-0.2.0 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-metrics-api-0.1.1 lib/opentelemetry/metrics/meter_provider.rb
opentelemetry-metrics-api-0.1.0 lib/opentelemetry/metrics/meter_provider.rb