Skip to content

Commit

Permalink
Initialize the dsn (RedHatInsights#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
abaiken authored Apr 5, 2023
1 parent 4e7168c commit 99709c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ func main() {
var dsn string = os.Getenv("GLITCHTIP_DSN")

if dsn != "" {
err := sentry.Init(sentry.ClientOptions{})
err := sentry.Init(sentry.ClientOptions{
Dsn: dsn,
})
if err != nil {
logger.Log.WithFields(logrus.Fields{"error": err}).Error("Error loading Sentry SDK with GLITCHTIP_DSN")
} else {
Expand Down

0 comments on commit 99709c8

Please sign in to comment.