mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
profiling
This commit is contained in:
parent
e100f50def
commit
b537d03777
1 changed files with 4 additions and 3 deletions
7
main.go
7
main.go
|
|
@ -31,9 +31,10 @@ func init() {
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if err := sentry.Init(sentry.ClientOptions{
|
if err := sentry.Init(sentry.ClientOptions{
|
||||||
Dsn: os.Getenv("SENTRY_DSN"),
|
Dsn: os.Getenv("SENTRY_DSN"),
|
||||||
EnableTracing: true,
|
EnableTracing: true,
|
||||||
TracesSampleRate: 1.0,
|
TracesSampleRate: 1.0,
|
||||||
|
ProfilesSampleRate: 1.0,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.Fatalf("error initializing sentry: %s", err)
|
log.Fatalf("error initializing sentry: %s", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue