outposts: fix outpost's sentry not sending release

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-23 19:01:32 +01:00
parent 2520c92b78
commit 47356915b1
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package ak package ak
import ( import (
"fmt"
"net/http" "net/http"
"os" "os"
"strings" "strings"
@ -42,6 +43,7 @@ func doGlobalSetup(outpost api.Outpost, globalConfig api.Config) {
Dsn: dsn, Dsn: dsn,
Environment: globalConfig.ErrorReporting.Environment, Environment: globalConfig.ErrorReporting.Environment,
TracesSampleRate: float64(globalConfig.ErrorReporting.TracesSampleRate), TracesSampleRate: float64(globalConfig.ErrorReporting.TracesSampleRate),
Release: fmt.Sprintf("authentik@%s", constants.VERSION),
IgnoreErrors: []string{ IgnoreErrors: []string{
http.ErrAbortHandler.Error(), http.ErrAbortHandler.Error(),
}, },