Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’d add to no. 1 by saying include a correlation id or request id so you have a way to filter the logs into a single linear stream related to the same action.


Absolutely constantly being able to get a single linear stream is when tracing becomes super powerful.


Also adding a context tag can very powerful, especially in times of Microservices and some kind of event driven stuff like monthly payments.

Imagine: user registers, the post gets and id, and context registering. Then he adds a credit card. (a new id, context credit payments) after 14 days the bill goes out, same id, same context.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: