1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/metrics/attributes.go
Charles-Edouard Brétéché ff9ba81440
feat: add webhook type to admission metrics (#5493)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2022-11-30 17:30:24 +08:00

14 lines
316 B
Go

package metrics
import "go.opentelemetry.io/otel/attribute"
const (
// keys
RequestWebhookKey = attribute.Key("request_webhook")
)
var (
// keyvalues
WebhookMutating = RequestWebhookKey.String("MutatingWebhookConfiguration")
WebhookValidating = RequestWebhookKey.String("ValidatingWebhookConfiguration")
)