feat: remove superfluous sentry span handlers

This commit is contained in:
2024-10-02 12:12:51 +02:00
parent ecacbb1cbd
commit 9bd1d0fbd7
3 changed files with 1 additions and 42 deletions

View File

@ -32,8 +32,6 @@ import (
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus/promhttp"
"gitlab.com/wpetit/goweb/logger"
bouncersentry "forge.cadoles.com/cadoles/bouncer/internal/sentry"
)
type Server struct {
@ -197,7 +195,7 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
proxy.WithDefaultHandler(http.HandlerFunc(s.handleDefault)),
)
r.Handle("/*", bouncersentry.SpanHandler(handler, "http.proxy"))
r.Handle("/*", handler)
})
if err := http.Serve(listener, router); err != nil && !errors.Is(err, net.ErrClosed) {