Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The official Go SDK for Sentry (sentry.io)

License

NotificationsYou must be signed in to change notification settings

getsentry/sentry-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

945 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sentry

Official Sentry SDK for Go

Build StatusGo Report CardDiscordX Followgo.dev

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 oldraven-go SDK documentation? See the Legacy client sectionhere.If you want to start usingsentry-go instead, check out themigration guide.

Requirements

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.

Installation

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

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

Check out thelist of released versions.

Configuration

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.

Usage

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:

Resources

License

Licensed underThe MIT License, seeLICENSE.

Community

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


[8]ページ先頭

©2009-2026 Movatter.jp