feat: show application ownership and scoped console management
This commit is contained in:
@@ -207,7 +207,7 @@ func wrap(next endpoint) http.HandlerFunc {
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(r.Context(), 8*time.Second)
|
||||
defer cancel()
|
||||
data, status, err := next(r.WithContext(ctx), token)
|
||||
data, status, err := next(r.WithContext(ctx), scopedConsoleToken(r, token))
|
||||
if err != nil {
|
||||
if fault.Code(err) == "UNAVAILABLE" {
|
||||
slog.Error("Orbit API operation failed", "request_id", id, "code", "UNAVAILABLE")
|
||||
|
||||
Reference in New Issue
Block a user