lib/ddtrace/opentracer/global_tracer.rb in ddtrace-0.34.2 vs lib/ddtrace/opentracer/global_tracer.rb in ddtrace-0.35.0
- old
+ new
@@ -4,10 +4,10 @@
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
+ Datadog.configure { |c| c.tracer = tracer.datadog_tracer }
end
end
end
end
end