fermentord/vendor/github.com/getsentry/sentry-go
2024-06-15 15:58:47 +02:00
..
internal Update dependencies 2024-06-15 15:58:47 +02:00
.codecov.yml Update dependencies 2024-06-15 15:58:47 +02:00
.craft.yml Update dependencies 2024-06-15 15:58:47 +02:00
.gitattributes Upgrade to go 1.20 and add vendor catalog 2023-04-22 10:37:23 +02:00
.gitignore Update dependencies 2024-06-15 15:58:47 +02:00
.golangci.yml Update dependencies 2024-06-15 15:58:47 +02:00
CHANGELOG.md Update dependencies 2024-06-15 15:58:47 +02:00
check_in.go Update dependencies 2024-06-15 15:58:47 +02:00
client.go Update dependencies 2024-06-15 15:58:47 +02:00
CONTRIBUTING.md Update dependencies 2024-06-15 15:58:47 +02:00
doc.go Update dependencies 2024-06-15 15:58:47 +02:00
dsn.go Update dependencies 2024-06-15 15:58:47 +02:00
dynamic_sampling_context.go Update dependencies 2024-06-15 15:58:47 +02:00
hub.go Update dependencies 2024-06-15 15:58:47 +02:00
integrations.go Update dependencies 2024-06-15 15:58:47 +02:00
interfaces.go Update dependencies 2024-06-15 15:58:47 +02:00
LICENSE Update dependencies 2024-06-15 15:58:47 +02:00
Makefile Update dependencies 2024-06-15 15:58:47 +02:00
metrics.go Update dependencies 2024-06-15 15:58:47 +02:00
MIGRATION.md Upgrade to go 1.20 and add vendor catalog 2023-04-22 10:37:23 +02:00
profile_sample.go Update dependencies 2024-06-15 15:58:47 +02:00
profiler.go Update dependencies 2024-06-15 15:58:47 +02:00
profiler_other.go Update dependencies 2024-06-15 15:58:47 +02:00
profiler_windows.go Update dependencies 2024-06-15 15:58:47 +02:00
README.md Update dependencies 2024-06-15 15:58:47 +02:00
scope.go Update dependencies 2024-06-15 15:58:47 +02:00
sentry.go Update dependencies 2024-06-15 15:58:47 +02:00
sourcereader.go Update dependencies 2024-06-15 15:58:47 +02:00
span_recorder.go Update dependencies 2024-06-15 15:58:47 +02:00
stacktrace.go Update dependencies 2024-06-15 15:58:47 +02:00
stacktrace_below_go1.20.go Update dependencies 2024-06-15 15:58:47 +02:00
stacktrace_go1.20.go Update dependencies 2024-06-15 15:58:47 +02:00
traces_profiler.go Update dependencies 2024-06-15 15:58:47 +02:00
traces_sampler.go Update dependencies 2024-06-15 15:58:47 +02:00
tracing.go Update dependencies 2024-06-15 15:58:47 +02:00
transport.go Update dependencies 2024-06-15 15:58:47 +02:00
util.go Update dependencies 2024-06-15 15:58:47 +02:00

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, youll 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, checkout 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!