Skip to content

Improve httpRequest structured log entry #25

Open
@thclark

Description

@thclark

Feature request

Use Case

Basic httpRequest information is added to the GoogleStructuredLogHandler. However, this data could be much richer, as many fields are missing.

Current state

Inspecting the record.request object in the test server gives me a socket connection, not an HTTPRequest object. I don't know why; there's no ASGI server set up or anything and the same happens in debug and production mode. If anyone cares to:

  • solve this and get more http information out of the logs emitted by django.server, or
  • replace django.server with specific middleware to log detailed request information,

Especially if at the same time you:

  • do something smart about spans and traces to get much fuller information in

... then PRs are most welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature of the appgood first issueA good first issue for new or junior developershelp wantedApplied by the assigned developer if they need help

    Type

    No type

    Projects

    Status

    Percolating

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions