Five logging practices a team would keep after four months of incident-driven lessons
A developer shares five logging decisions drawn from four months of log rotation problems, late-night pages, and an outage. Their approach keeps application logs minimal, with JSON lines written to stdout containing a fixed set of fields such as service, level, event, request ID, and duration. A request ID is generated or reused and propagated across responses and outbound calls to speed up investigations. Sampling is handled in the collector rather than the app, keeping all errors and slow requests while sampling a small share of successful ones. The author also favors metric-based alerts over error-level log notifications, and recommends strict rules against logging sensitive data, plus focusing on trace views and a single overview dashboard instead of many custom dashboards.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in