130
you are viewing a single comment's thread
view the rest of the comments
[-] FishFace@piefed.social 2 points 1 day ago

We switched to structured logging a while ago and it's very useful. We have used sentry for ages though and that was a bigger improvement. Many hard to debug problems have actually been trivialised by it, due to the context it provides.

This is for a monolithic application though, I dunno how this would scale for microservices.

The goal of logging a single event per request seems very ambitious imo. But maybe there are things out there that make it easier to glom logs onto a single context object easily and transfer it between services.

Honestly though I think you get a lot of the way there if ever structured log line related to a request includes a request id so you can just filter on that.

this post was submitted on 21 Dec 2025
130 points (100.0% liked)

Programming

24010 readers
362 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS