lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb in ddtrace-0.39.0 vs lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb in ddtrace-0.40.0
- old
+ new
@@ -64,16 +64,9 @@
# rather than firing an error, simply acknowledge we don't know it.
status = payload.fetch(:status, '?').to_s
span.status = 1 if status.starts_with?('5')
elsif Utils.exception_is_error?(exception)
span.set_error(exception)
-
- # Some exception gets handled by Rails middleware before it can be set on Rack middleware
- # The rack span is the root span of the request and should make sure it has the full exception
- # set on it.
- if env[:datadog_rack_request_span]
- env[:datadog_rack_request_span].set_error(exception)
- end
end
ensure
span.finish
end
rescue StandardError => e