Sha256: 298bf15d301e4942cab80737339aaeb6cdacd287503b8e0ca8f558b6e92be9c1

Contents?: true

Size: 408 Bytes

Versions: 16

Compression:

Stored size: 408 Bytes

Contents

# typed: 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

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.8.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.7.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.6.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.6.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.5.2 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.5.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.5.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.4.2 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.4.1 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.4.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.3.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.2.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.1.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.0.0 lib/datadog/opentracer/global_tracer.rb
ddtrace-1.0.0.beta2 lib/datadog/opentracer/global_tracer.rb