logoalt Hacker News

deskamesstoday at 5:30 PM1 replyview on HN

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?


Replies

alcazartoday at 5:34 PM

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.