-
Notifications
You must be signed in to change notification settings - Fork 40
[Feature Request] Add impersonation metrics #1325
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Description
The openlane API supports impersonation of users to do things like:
- run jobs on behalf of a user
- temporary access for support
- etc.
It would be nice to have metrics added to track counts of requests:
Add metrics with the type (start/stop) and increment the count
Handler:
| func (h *Handler) logImpersonationEvent(action string, auditLog *auth.ImpersonationAuditLog) error { |
The new metric can be added to the metrics package:
https://github.com/theopenlane/core/blob/main/pkg/metrics/vars.go
With a helper added to the metrics/helpers.go:
https://github.com/theopenlane/core/blob/main/pkg/metrics/helpers.go
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest