DEV Community

Cover image for Configuration Sentry Golang
Suharxxxx
Suharxxxx

Posted on • Edited on

Configuration Sentry Golang

https://sentry.io/welcome/
Track errors & monitor performance in all major languages & frameworks with Sentry

https://go.dev/play/p/uFHluuK7-84
Image description

  • create a new project, pick golang

Image description

Image description

  • after create project, you will be given a brief guide to starting sentry

Image description

  • install go get github.com/getsentry/sentry-go

Image description

  • import github.com/getsentry/sentry-go

Image description

  • setup ur dsn Dsn: "https://--DSN--"

"you will get dsn when you first create a project",

Image description

  • capture message sentry.CaptureMessage("It works!")

Image description

Image description

detail documentation https://docs.sentry.io/platforms/go/

Top comments (0)