Sha256: c921aac14aa0923316808b037713e316df25d036f58f157a1170ce1ae48aa4ee

Contents?: true

Size: 377 Bytes

Versions: 29

Compression:

Stored size: 377 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.configuration.tracer = tracer.datadog_tracer
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.34.2 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.34.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.34.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.33.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.33.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.32.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.31.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.31.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.30.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.30.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.29.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.26.1 lib/ddtrace/opentracer/global_tracer.rb
ls-trace-0.1.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.29.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.28.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.27.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.26.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.25.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.25.0 lib/ddtrace/opentracer/global_tracer.rb