Sha256: 73957905bac8fdf8f51e35197c8ae875f8a491eeb153eabd9d87f1589e2a8b2a

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.54.1 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.54.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.53.0 lib/ddtrace/opentracer/global_tracer.rb
ddtrace-0.52.0 lib/ddtrace/opentracer/global_tracer.rb