- Notifications
You must be signed in to change notification settings - Fork246
The official Go SDK for Sentry (sentry.io)
License
getsentry/sentry-go
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
sentry-go provides a Sentry client implementation for the Go programminglanguage. This is the next generation of the Go SDK forSentry,intended to replace theraven-go package.
Looking for the old
raven-goSDK documentation? See the Legacy client sectionhere.If you want to start usingsentry-goinstead, check out themigration guide.
The only requirement is a Go compiler.
We verify this package against the 3 most recent releases of Go. Those are thesupported versions. The exact versions are defined inGitHub workflow.
In addition, we run tests against the current master branch of the Go toolchain,though support for this configuration is best-effort.
sentry-go can be installed like any other Go library throughgo get:
$go get github.com/getsentry/sentry-go@latestCheck out thelist of released versions.
To usesentry-go, you’ll need to import thesentry-go package and initializeit with your DSN and otheroptions.
If not specified in the SDK initialization, theDSN,Release andEnvironmentare read from the environment variablesSENTRY_DSN,SENTRY_RELEASE andSENTRY_ENVIRONMENT, respectively.
More on this in theConfiguration section of the official Sentry Go SDK documentation.
The SDK supports reporting errors and tracking application performance.
To get started, have a look at one of ourexamples:
We also provide acomplete API reference.
For more detailed information about how to get the most out ofsentry-go,check out the official documentation:
Licensed underThe MIT License, seeLICENSE.
Join Sentry's#go channel on Discord to getinvolved and help us improve the SDK!
About
The official Go SDK for Sentry (sentry.io)
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
