lib/ddtrace/contrib/http/circuit_breaker.rb in ddtrace-0.45.0 vs lib/ddtrace/contrib/http/circuit_breaker.rb in ddtrace-0.46.0
- old
+ new
@@ -25,12 +25,10 @@
false
end
end
def should_skip_distributed_tracing?(pin)
- if pin.config && pin.config.key?(:distributed_tracing)
- return !pin.config[:distributed_tracing]
- end
+ return !pin.config[:distributed_tracing] if pin.config && pin.config.key?(:distributed_tracing)
!Datadog.configuration[:http][:distributed_tracing]
end
end
end