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:
@ -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
|
||||
|
Reference in New Issue
Block a user