fix(backend): add environment variable to disable tracing

This commit is contained in:
sam 2023-09-20 17:03:12 +02:00
parent a297ec681e
commit cb8cfb9d2f
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})