Skip to content

Log response length for rails and API requests

Alex Pooley requested to merge ap-api-response-length into master

What does this MR do and why?

Log response length for rails web and API requests. This allows us to correlate response length against request performance.

The work is behind a feature flag for protection.

Code based off https://github.com/rack/rack/blob/main/lib/rack/content_length.rb.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #366618 (closed)

Edited by Alex Pooley

Merge request reports