From cb8cfb9d2fa225ef00df96ec4b1310a6adf7e679 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 20 Sep 2023 17:03:12 +0200 Subject: [PATCH] fix(backend): add environment variable to disable tracing --- backend/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.go b/backend/main.go index a2029f7..d9efd98 100644 --- a/backend/main.go +++ b/backend/main.go @@ -30,7 +30,7 @@ func run(c *cli.Context) error { Dsn: dsn, Debug: os.Getenv("DEBUG") == "true", Release: server.Tag, - EnableTracing: true, + EnableTracing: os.Getenv("SENTRY_TRACING") == "true", TracesSampleRate: 0.05, ProfilesSampleRate: 0.05, })