From 99709c8475dd489d410c11efb5b9c52c5f6f9070 Mon Sep 17 00:00:00 2001 From: Ashley Aiken Date: Wed, 5 Apr 2023 14:25:44 -0400 Subject: [PATCH] Initialize the dsn (#102) --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2f148ee4..3bed3765 100644 --- a/main.go +++ b/main.go @@ -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 {