Sha256: 778f7b1187df27796365b2c5c2f0bf3dc8d78170bad4a05ca1af5c662cfeb63a

Contents?: true

Size: 847 Bytes

Versions: 18

Compression:

Stored size: 847 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2017

require "instana/open_tracing/carrier"
require "instana/open_tracing/instana_tracer"

module OpenTracing
  class << self
    # Text format for #inject and #extract
    FORMAT_TEXT_MAP = 1

    # Binary format for #inject and #extract
    FORMAT_BINARY = 2

    # Ruby Specific format to handle how Rack changes environment variables.
    FORMAT_RACK = 3

    attr_accessor :global_tracer

    def method_missing(method_name, *args, **kwargs, &block)
      @global_tracer.send(method_name, *args, **kwargs, &block)
    end

    def respond_to_missing?(name, all)
      @global_tracer.respond_to?(name, all)
    end
  end
end

# Set the global tracer to our OT tracer
# which supports the OT specification
OpenTracing.global_tracer = OpenTracing::InstanaTracer.new(::Instana.tracer)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
instana-1.217.1 lib/opentracing.rb
instana-1.217.0 lib/opentracing.rb
instana-1.216.0 lib/opentracing.rb
instana-1.215.1 lib/opentracing.rb
instana-1.215.0 lib/opentracing.rb
instana-1.214.4 lib/opentracing.rb
instana-1.214.3 lib/opentracing.rb
instana-1.214.2 lib/opentracing.rb
instana-1.214.1 lib/opentracing.rb
instana-1.214.0 lib/opentracing.rb
instana-1.213.3 lib/opentracing.rb
instana-1.213.2 lib/opentracing.rb
instana-1.213.1 lib/opentracing.rb
instana-1.213.0 lib/opentracing.rb
instana-1.212.0 lib/opentracing.rb
instana-1.211.0 lib/opentracing.rb
instana-1.210.1 lib/opentracing.rb
instana-1.210.0 lib/opentracing.rb