Stack Traces in Go(github.com)
github.com
Stack Traces in Go
https://github.com/DataDog/go-profiler-notes/blob/main/stack-traces.md
1 comments
The context of this article is profiling, not error handling.
https://github.com/DataDog/go-profiler-notes/blob/main/stack-traces.md
doing the thing in the controller: accessing the database: context deadline exceeded
I find that people want stacktraces in Go because they want to log errors when they first occur. This is fine, but it's fighting the language. Wrap properly, and log at the last place you can.