Skip to main content

Module request_logging

Module request_logging 

Source
Expand description

Go request_logging.go / response_writer.go and request_logger_writer.go. Request bodies in these files are intentionally unredacted, as in Go. Headers and URL queries are masked before writing; management routes are never captured.

Structs§

RequestLog
Cloneable per-request sink carried in HTTP extensions. Capture helpers must mask upstream credentials before passing preformatted API sections, as in Go.
WebsocketLog
Connection-owned timeline sink. Explicit close().await waits for the durable log; dropping the sink also schedules finalization on client disconnect.

Functions§

router
Install inside access logging so the UUID is already in request extensions. Commercial mode is a construction-time choice, exactly like Go’s server.