feat: add bounded observability and verified SLO incident alerts

This commit is contained in:
Vladislav Agapov
2026-10-29 18:01:11 +03:00
parent 470d9d6f1e
commit 6c7601802d
325 changed files with 24988 additions and 44 deletions
+18
View File
@@ -0,0 +1,18 @@
package admission
import (
"context"
"errors"
)
// ErrRate means the request exhausted a shared rate budget.
var ErrRate = errors.New("shared request rate exceeded")
// ErrSlots means the request exhausted a shared concurrency budget.
var ErrSlots = errors.New("shared execution slots exhausted")
// Distributed defines request admission independently of the backing database.
type Distributed interface {
// Enter reserves global/group or user/group budgets and returns a release operation.
Enter(ctx context.Context, group, user string) (func(), error)
}