Skip to content

Feature request: Log request size #4494

@obrienmd

Description

@obrienmd

This may of course be a naive request, given streaming may make it more difficult than is obvious. I'd love to be able to log size (in bytes, like the response size) of incoming requests, and I don't see that in the access log JSON object.

e.g.

  1. Client POSTS to /foo/bar with a few fields (say, 1600 bytes total).
  2. "size": 1600 is included in the "request" key of the access log JSON object.

The motivation for this is to simplify debugging when I believe a client is sending a body that doesn't match its Content-Length header, so we can rule out our beloved reverse proxy causing the issue :)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions