Skip to content

Commit 25a7459

Browse files
committed
UPSTREAM: <carry>: always track latencies
We can reconsider this if we have field size issues, but I doubt we will. If we do, we can find a way to configure this only during pre-release we gain a lot of useful CI data.
1 parent 309f240 commit 25a7459

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/endpoints/filters

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func writeLatencyToAnnotation(ctx context.Context, ev *auditinternal.Event) {
158158
// of the given request exceeds 500ms, this is in keeping with the
159159
// traces in rest/handlers for create, delete, update,
160160
// get, list, and deletecollection.
161-
const threshold = 500 * time.Millisecond
161+
const threshold = 0 * time.Millisecond
162162
latency := ev.StageTimestamp.Time.Sub(ev.RequestReceivedTimestamp.Time)
163163
if latency <= threshold {
164164
return

0 commit comments

Comments
 (0)