Skip to content

getsentry/sentry-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7996759 · Apr 15, 2025
Apr 15, 2025
Jan 2, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 7, 2025
Apr 15, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Feb 7, 2023
Apr 10, 2025
Jul 26, 2023
Apr 10, 2025
Feb 3, 2023
Jan 2, 2025
May 19, 2021
Jan 23, 2023
Apr 15, 2025
Apr 10, 2025
Dec 14, 2022
Feb 16, 2023
Dec 20, 2021
Nov 13, 2024
Dec 6, 2024
Apr 16, 2024
Dec 11, 2024
Apr 15, 2025
Apr 11, 2023
Dec 20, 2024
May 8, 2023
Nov 20, 2024
Dec 12, 2024
Apr 23, 2019
Mar 17, 2025
Jan 2, 2025
Jan 2, 2025
Feb 1, 2023
Mar 17, 2025
Mar 17, 2025
Apr 21, 2024
Mar 14, 2025
Dec 20, 2024
Dec 12, 2024
Jul 18, 2023
Mar 14, 2025
Jul 15, 2024
Jul 15, 2024
Nov 20, 2024
Jul 15, 2024
Mar 17, 2025
Apr 10, 2025
Oct 4, 2022
Jun 16, 2020
Jun 12, 2023
Oct 18, 2023
Nov 20, 2024
Oct 31, 2022
Nov 8, 2024
Nov 29, 2022
Mar 17, 2025
Apr 15, 2025
Apr 15, 2025
Apr 15, 2025
Mar 17, 2025
Apr 15, 2025
Apr 3, 2024

Repository files navigation

Sentry

Official Sentry SDK for Go

Build Status Go Report Card Discord go.dev

sentry-go provides a Sentry client implementation for the Go programming language. This is the next generation of the Go SDK for Sentry, intended to replace the raven-go package.

Looking for the old raven-go SDK documentation? See the Legacy client section here. If you want to start using sentry-go instead, check out the migration guide.

Requirements

The only requirement is a Go compiler.

We verify this package against the 3 most recent releases of Go. Those are the supported versions. The exact versions are defined in GitHub workflow.

In addition, we run tests against the current master branch of the Go toolchain, though support for this configuration is best-effort.

Installation

sentry-go can be installed like any other Go library through go get:

$ go get github.com/getsentry/sentry-go@latest

Check out the list of released versions.

Configuration

To use sentry-go, you’ll need to import the sentry-go package and initialize it with your DSN and other options.

If not specified in the SDK initialization, the DSN, Release and Environment are read from the environment variables SENTRY_DSN, SENTRY_RELEASE and SENTRY_ENVIRONMENT, respectively.

More on this in the Configuration section of the official Sentry Go SDK documentation.

Usage

The SDK supports reporting errors and tracking application performance.

To get started, have a look at one of our examples:

We also provide a complete API reference.

For more detailed information about how to get the most out of sentry-go, check out the official documentation:

Resources

License

Licensed under The MIT License, see LICENSE.

Community

Join Sentry's #go channel on Discord to get involved and help us improve the SDK!