Module: Datadog::OpenTracer::GlobalTracer
- Defined in:
- lib/ddtrace/opentracer/global_tracer.rb
Overview
Patch for OpenTracing module
Instance Method Summary collapse
Instance Method Details
#global_tracer=(tracer) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ddtrace/opentracer/global_tracer.rb', line 5 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 |