Page MenuHomePhabricator

Retroactively fix logging to use a RequestScopedLogger where applicable
Closed, ResolvedPublic

Description

Our Golang logger has a request-scoped logger, meant to handle the consistent logging of request-specific attributes (client information, trace headers, etc) from HTTP handlers. The easiest way to create a RequestScopedLogger is to use the Logger.Request(*http.Request) factory method. An example of its use can be seen in top_by_country.go.

image.png (227×1 px, 58 KB)