Sha256: 984e5e0a5dd299926fa71b6f240495344a048ecdaf98211266c9ce31585bd754

Contents?: true

Size: 424 Bytes

Versions: 22

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module OpenTracer
    # Patch for OpenTracing module
    module GlobalTracer
      def global_tracer=(tracer)
        super.tap do
          if tracer.class <= Datadog::OpenTracer::Tracer
            # Update the Datadog global tracer, too.
            Datadog.configure { |c| c.tracing.instance = tracer.datadog_tracer }
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.23.2 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.23.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.22.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.21.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.21.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.20.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.19.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.18.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.17.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.16.2 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.16.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.16.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.15.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.14.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.13.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.13.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.12.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.12.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.11.1 lib/datadog/opentracer/global_tracer.rb