fix(backend): add environment variable to disable tracing
This commit is contained in:
parent
a297ec681e
commit
cb8cfb9d2f
|
@ -30,7 +30,7 @@ func run(c *cli.Context) error {
|
||||||
Dsn: dsn,
|
Dsn: dsn,
|
||||||
Debug: os.Getenv("DEBUG") == "true",
|
Debug: os.Getenv("DEBUG") == "true",
|
||||||
Release: server.Tag,
|
Release: server.Tag,
|
||||||
EnableTracing: true,
|
EnableTracing: os.Getenv("SENTRY_TRACING") == "true",
|
||||||
TracesSampleRate: 0.05,
|
TracesSampleRate: 0.05,
|
||||||
ProfilesSampleRate: 0.05,
|
ProfilesSampleRate: 0.05,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue