Sha256: ccd277f9e72ef45496abe3e1bd014323ea6f68ba1c187d5af98061ab60ead639

Contents?: true

Size: 827 Bytes

Versions: 39

Compression:

Stored size: 827 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, &block)
      @global_tracer.send(method_name, *args, &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

39 entries across 39 versions & 1 rubygems

Version Path
instana-1.209.8 lib/opentracing.rb
instana-1.209.7 lib/opentracing.rb
instana-1.209.6 lib/opentracing.rb
instana-1.209.5 lib/opentracing.rb
instana-1.209.4 lib/opentracing.rb
instana-1.209.3 lib/opentracing.rb
instana-1.209.2 lib/opentracing.rb
instana-1.209.1 lib/opentracing.rb
instana-1.209.0.pre3 lib/opentracing.rb
instana-1.209.0.pre2 lib/opentracing.rb
instana-1.209.0.pre1 lib/opentracing.rb
instana-1.208.0 lib/opentracing.rb
instana-1.207.0 lib/opentracing.rb
instana-1.206.0 lib/opentracing.rb
instana-1.205.0 lib/opentracing.rb
instana-1.204.0 lib/opentracing.rb
instana-1.204.0.pre3 lib/opentracing.rb
instana-1.204.0.pre2 lib/opentracing.rb
instana-1.204.0.pre1 lib/opentracing.rb
instana-1.203.2 lib/opentracing.rb