Sha256: ed5f6426d34790337635760c45d231469a155f0d176d3b3b9bbcb3d1cf566795

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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