Home / Companies / Incident.io / Blog / Post Details
Content Deep Dive

Making Go errors play nice with Sentry

Blog post from Incident.io

Post Details
Company
Date Published
Author
Lawrence Jones
Word Count
1,417
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

The text discusses how to make Go errors work well with Sentry, an error tracking tool. It explains that standard Go errors don't have stacktraces, which makes it hard for tools like Sentry to provide much value. To address this issue, the author suggests using pkg/errors, a library that implements StackTracer errors and is compatible with Sentry. The text also covers how to wrap errors to ensure they include stacktraces and how to de-duplicate stacktraces when wrapping multiple times. Finally, it mentions creating their own version of pkg/errors to better control error production and improve compatibility with tools like Sentry.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.