lib/ddtrace/contrib/rails/action_view.rb in ddtrace-0.5.0 vs lib/ddtrace/contrib/rails/action_view.rb in ddtrace-0.6.0
- old
+ new
@@ -79,11 +79,10 @@
error = payload[:exception]
span.status = 1
span.set_tag(Datadog::Ext::Errors::TYPE, error[0])
span.set_tag(Datadog::Ext::Errors::MSG, error[1])
end
-
ensure
span.start_time = start
span.finish_at(finish)
end
rescue StandardError => e
@@ -108,10 +107,9 @@
error = payload[:exception]
span.status = 1
span.set_tag(Datadog::Ext::Errors::TYPE, error[0])
span.set_tag(Datadog::Ext::Errors::MSG, error[1])
end
-
ensure
span.start_time = start
span.finish_at(finish)
end
rescue StandardError => e