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

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