# Making Go errors play nice with Sentry

DevFeed: [Making Go errors play nice with Sentry](<https://devfeed.tech/articles/making-go-errors-play-nice-with-sentry-11790.md>)

Original publisher: [Read original article](<https://incident.io/blog/golang-errors>)

Author: Lawrence Jones

Published: 2022-04-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [The incident.io Blog](<https://devfeed.tech/sources/the-incident-io-blog.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Slack](<https://devfeed.tech/topics/slack.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [errors](<https://devfeed.tech/tags/errors.md>), [go](<https://devfeed.tech/tags/go.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [incident](<https://devfeed.tech/tags/incident.md>), [incident-channel](<https://devfeed.tech/tags/incident-channel.md>), [incident-management](<https://devfeed.tech/tags/incident-management.md>), [incident-response](<https://devfeed.tech/tags/incident-response.md>), [outage](<https://devfeed.tech/tags/outage.md>), [post-mortem](<https://devfeed.tech/tags/post-mortem.md>), [slack](<https://devfeed.tech/tags/slack.md>), [slack-incident](<https://devfeed.tech/tags/slack-incident.md>)

## AI overview

The article explains how incident.io improved Go error reporting with Sentry. Because standard Go errors do not include stack traces, the article discusses using the archived pkg/errors library to create errors that Sentry can trace, while noting the broader confusion around the Go error-handling ecosystem and dependencies that still return basic errors.

## Source excerpt

Configuring Go error reporting to work effectively with Sentry can be challenging. In this post, we share how we improved our setup by deduplicating stacktraces for clearer, more efficient error handling.