status-go/vendor/github.com/getsentry/sentry-go
Igor Sirotin f15c64ced3
chore_: add sentry-go dependency ()
2024-11-06 17:37:08 +00:00
..
internal chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
.codecov.yml chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
.craft.yml chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
.gitattributes chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
.gitignore chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
.golangci.yml chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
CHANGELOG.md chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
CONTRIBUTING.md chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
LICENSE chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
MIGRATION.md chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
Makefile chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
README.md chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
check_in.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
client.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
doc.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
dsn.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
dynamic_sampling_context.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
hub.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
integrations.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
interfaces.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
metrics.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
profile_sample.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
profiler.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
profiler_other.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
profiler_windows.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
propagation_context.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
scope.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
sentry.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
sourcereader.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
span_recorder.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
stacktrace.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
stacktrace_below_go1.20.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
stacktrace_below_go1.21.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
stacktrace_go1.20.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
stacktrace_go1.21.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
traces_profiler.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
traces_sampler.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
tracing.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
transport.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00
util.go chore_: add sentry-go dependency () 2024-11-06 17:37:08 +00:00

README.md

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!