Sha256: c1ddbee8d69adf27fd593b1a02bef184b78c04dabe65f6be70b90db5d286b4d2

Contents?: true

Size: 383 Bytes

Versions: 21

Compression:

Stored size: 383 Bytes

Contents

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.tracer = tracer.datadog_tracer }
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.51.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.50.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.49.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.48.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.47.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.46.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.45.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.44.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.43.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.42.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.41.0 lib/ddtrace/opentracer/global_tracer.rb
ls-trace-0.2.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.40.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.39.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.38.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.37.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.36.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.35.2 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.35.1 lib/ddtrace/opentracer/global_tracer.rb