Live data from Hacker News

Wide logging: Stripe's canonical log line pattern

blog.alcazarsec.com

11–13 of 13 posts

Re: Wide logging: Stripe's canonical log line pattern

#13
post #5

Are there any restrictions on how short the error_slug should be? The meat of some of my errors can be pretty long (for example an ffmpeg error). There are also many phases to a job - call them tasks. Can a canonical log line be a collection of task log lines?

You should avoid dumping the raw error entirely. The idea is that error_slug is a stable grouping key. The idea is to consolidate all that can be grouped into one logical unit. So you would do one long log line at the end, after all tasks are done.

I see one of your responses that this is a complement to an existing logging system - a one line summary. That works for me.
Post reply on HN