Re:Discussion: structured, leveled logging
by tptacek on Sunday September 11, 2022 @03:32PM
(#32802533)
Sure. If it was a different language, or a different otel library, my opinion would probably be different. I do not think it's realistic to replace logging with otel in Go, though.
[ Parent
| on HN ]
Re:Discussion: structured, leveled logging
by phillipcarter on Sunday September 11, 2022 @03:50PM
(#32802654)
I think it's an inclusive OR here. When logging stabilizes in the Go SDK (which will be a while, perhaps a year) the idea will be that you can keep all your existing logging and then start to add tracing judiciously so they're easily correlated with requests. I think the juice is worth that particular squeeze for more folks at least.
From there I would personally advocate for adding more manual traces rather than more logs, but it's understandable if it's a heavier lift to pass context around all the time. The more options the better.
Re:Discussion: structured, leveled logging
by glenjamin on Sunday September 11, 2022 @06:26PM
(#32803859)
For web-style application code my experience writing Go code says that you totally can stop using logs and just use traces and have just as much visibility into a running process, if not more.
For library code or other deployment models I’m not sure - it’s not something I’ve had a need to experiment with