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

chore: update sentry sdk

This commit is contained in:
Ferdinand Mütsch
2023-07-08 18:36:25 +02:00
parent 055d006379
commit 7b60c44ac6
2 changed files with 2 additions and 3 deletions

View File

@ -113,8 +113,7 @@ func initSentry(config sentryConfig, debug bool) {
AttachStacktrace: true,
EnableTracing: config.EnableTracing,
TracesSampler: func(ctx sentry.SamplingContext) float64 {
hub := sentry.GetHubFromContext(ctx.Span.Context())
txName := hub.Scope().Transaction()
txName := ctx.Span.Name
for _, ex := range excludedRoutes {
if strings.HasPrefix(txName, ex) {
return 0.0