1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: index error during summary generation (resolve #361)

chore(sentry): include stacktrace with panics
This commit is contained in:
Ferdinand Mütsch
2022-04-20 21:36:39 +02:00
parent d778612242
commit 4b0a3cf0d6
5 changed files with 12 additions and 18 deletions

View File

@@ -109,8 +109,9 @@ var excludedRoutes = []string{
func initSentry(config sentryConfig, debug bool) {
if err := sentry.Init(sentry.ClientOptions{
Dsn: config.Dsn,
Debug: debug,
Dsn: config.Dsn,
Debug: debug,
AttachStacktrace: true,
TracesSampler: sentry.TracesSamplerFunc(func(ctx sentry.SamplingContext) sentry.Sampled {
if !config.EnableTracing {
return sentry.SampledFalse