Sep 17, 2024
Human readable file upload params and ignore broken pipe errors
Ruby4.0.9
Changed
-
Add the logger gem as a dependency. This fixes the deprecation warning on Ruby 3.3.
-
Do not report errors caused by
Errno::EPIPE
(broken pipe errors) when instrumenting response bodies, to avoid reporting errors that cannot be fixed by the application. -
Normalize Rack and Rails
UploadedFile
objects. Instead of displaying the Ruby class name, it will now show object details like the filename and content type.Shell# Before #<Rack::Multipart::UploadedFile> #<ActionDispatch::Http::UploadedFile> # After #<Rack::Multipart::UploadedFile original_filename: "uploaded_file.txt", content_type: "text/plain"> #<ActionDispatch::Http::UploadedFile original_filename: "uploaded_file.txt", content_type: "text/plain">
View the Ruby gem v4.0.9 changelog for more information.