Skip to content

Commit

Permalink
Sentry configuration (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 17, 2024
1 parent bd6504c commit c9ff961
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cmd/api/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,16 @@ func initSentry(e *echo.Echo, db postgres.Storage, dsn, environment string) erro
}

if err := sentry.Init(sentry.ClientOptions{
Dsn: dsn,
AttachStacktrace: true,
Environment: environment,
EnableTracing: true,
TracesSampleRate: 1.0,
Release: os.Getenv("TAG"),
Dsn: dsn,
AttachStacktrace: true,
Environment: environment,
EnableTracing: true,
TracesSampleRate: 1.0,
ProfilesSampleRate: 1.0,
Release: os.Getenv("TAG"),
IgnoreTransactions: []string{
"GET /v1/ws",
},
}); err != nil {
return errors.Wrap(err, "initialization")
}
Expand Down

0 comments on commit c9ff961

Please sign in to comment.