From 3f547d9ea5f50c110b3ca61c825433b8c1333ac5 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Wed, 18 Jan 2023 02:46:39 -0700 Subject: added dogeknows-go --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 9394aa6..3841215 100644 --- a/main.go +++ b/main.go @@ -5,10 +5,12 @@ import ( "fmt" "html/template" "io/fs" + "log" "net/http" "os" "strconv" + "github.com/getsentry/sentry-go" "github.com/joho/godotenv" "github.com/meilisearch/meilisearch-go" mytemplates "github.com/navanchauhan/dogeknows-go/templates" @@ -31,6 +33,13 @@ func create_pdf_url(year string, knumber string) string { } func main() { + sentry_err := sentry.Init(sentry.ClientOptions{ + Dsn: "https://72a0913f00e24d5da4d44ccde6ebcc9c@o126149.ingest.sentry.io/4504524880674816", + TracesSampleRate: 1.0, + }) + if sentry_err != nil { + log.Fatalf("sentry.Init: %s", sentry_err) + } err := godotenv.Load(".env") if err != nil { fmt.Println("Error loading .env file") -- cgit v1.2.3