outposts: handle/ignore http Abort handler

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-12-20 19:42:45 +01:00
parent 82acba26af
commit 68637cf7cf
3 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"net/http"
"net/url"
"time"
@ -44,6 +45,9 @@ func main() {
TracesSampleRate: config.G.ErrorReporting.SampleRate,
Release: fmt.Sprintf("authentik@%s", constants.VERSION),
Environment: config.G.ErrorReporting.Environment,
IgnoreErrors: []string{
http.ErrAbortHandler.Error(),
},
})
if err != nil {
l.WithError(err).Warning("failed to init sentry")