lib/ddtrace/contrib/rails/middlewares.rb in ddtrace-0.9.2 vs lib/ddtrace/contrib/rails/middlewares.rb in ddtrace-0.10.0

- old
+ new

@@ -19,10 +19,10 @@ # as we really have no clue of what is in the block, # and it is user code which should be executed no matter what. # It's not a problem since we re-raise it afterwards so for example a # SignalException::Interrupt would still bubble up. rescue Exception => e - tracer = ::Rails.configuration.datadog_trace.fetch(:tracer) + tracer = Datadog.configuration[:rails][:tracer] span = tracer.active_span() span.set_error(e) unless span.nil? raise e end end