Devops Step 1
anubhavarya's profile
Anubhav Arya@anubhavarya•Feb 14
260
Post cover image

Your Logs Are Lying To You

Avatar of hnHacker News•From loggingsucks.com•Dec 21, 2025•13m read time

Traditional logging practices fail in modern distributed systems because they produce fragmented, context-poor log lines that are difficult to search and correlate. The solution is "wide events" (also called canonical log lines): emitting one comprehensive, structured event per request per service that contains all relevant context—user data, business metrics, infrastructure details, and error information. This approach transforms debugging from text searching into structured querying, enabling complex questions to be answered with simple SQL-like queries. Key implementation strategies include building events throughout the request lifecycle, using tail-based sampling to keep all errors while sampling successful requests, and deliberately instrumenting code with business context rather than relying on auto-instrumentation alone.

15 Impressions1 Comment
anubhavarya's user avatar
Anubhav Arya
@anubhavarya
Joined Sep 11. 2023
260

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard