proxy: don't use sentry for proxy server

This commit is contained in:
Jens Langhammer
2020-11-02 19:29:02 +01:00
parent 617432deaa
commit ba96c9526e
3 changed files with 51 additions and 43 deletions

View File

@ -9,8 +9,6 @@ import (
"time"
log "github.com/sirupsen/logrus"
sentryhttp "github.com/getsentry/sentry-go/http"
)
// Server represents an HTTP server
@ -105,9 +103,7 @@ func (s *Server) handler(w http.ResponseWriter, r *http.Request) {
}
func (s *Server) serve(listener net.Listener) {
sentryHandler := sentryhttp.New(sentryhttp.Options{})
srv := &http.Server{Handler: sentryHandler.HandleFunc(s.handler)}
srv := &http.Server{Handler: http.HandlerFunc(s.handler)}
// See https://golang.org/pkg/net/http/#Server.Shutdown
idleConnsClosed := make(chan struct{})