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

2
go.mod
View File

@ -8,7 +8,7 @@ require (
github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead
github.com/emersion/go-smtp v0.17.0
github.com/emvi/logbuch v1.2.0
github.com/getsentry/sentry-go v0.17.0
github.com/getsentry/sentry-go v0.22.0
github.com/glebarez/sqlite v1.8.0
github.com/go-chi/chi/v5 v5.0.8
github.com/gorilla/schema v1.2.0