Explores advanced error management patterns in Go applications, particularly HTTP APIs, by bridging structured logging with error handling. Demonstrates how to create ergonomic error management systems that carry contextual metadata through call trees using Go's context package. Introduces techniques for decorating errors with structured data that can be easily consumed by logging systems and monitoring tools, while maintaining simplicity and developer ergonomics. Includes practical implementation examples and introduces the author's fault library for production use.

16m read timeFrom southcla.ws
Post cover image
Table of contents
Structured loggingThe importance of being ergonomicThe ergonomics of errorsDesignBridging the context gapErrors are context in reversePutting it all togetherThings to watch out forHere's one I made earlier
1 Comment

Sort: