mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-14 09:55:12 +00:00
fix: add sentry in ui, http and projection handlers (#1977)
* fix: add sentry in ui, http and projection handlers * fix test
This commit is contained in:
+4
-1
@@ -4,6 +4,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
sentryhttp "github.com/getsentry/sentry-go/http"
|
||||
|
||||
http_util "github.com/caos/zitadel/internal/api/http"
|
||||
"github.com/caos/zitadel/internal/ui/console"
|
||||
"github.com/caos/zitadel/internal/ui/login"
|
||||
@@ -32,7 +34,8 @@ func Create(config Config) *UI {
|
||||
}
|
||||
|
||||
func (u *UI) RegisterHandler(prefix string, handler http.Handler) {
|
||||
http_util.RegisterHandler(u.mux, prefix, handler)
|
||||
sentryHandler := sentryhttp.New(sentryhttp.Options{})
|
||||
http_util.RegisterHandler(u.mux, prefix, sentryHandler.Handle(handler))
|
||||
}
|
||||
|
||||
func (u *UI) Start(ctx context.Context) {
|
||||
|
||||
Reference in New Issue
Block a user