Skip to content

Commit

Permalink
UPSTREAM: <carry>: always track latencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deads2k committed Jan 14, 2025
1 parent 309f240 commit 25a7459
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func writeLatencyToAnnotation(ctx context.Context, ev *auditinternal.Event) {
// of the given request exceeds 500ms, this is in keeping with the
// traces in rest/handlers for create, delete, update,
// get, list, and deletecollection.
const threshold = 500 * time.Millisecond
const threshold = 0 * time.Millisecond
latency := ev.StageTimestamp.Time.Sub(ev.RequestReceivedTimestamp.Time)
if latency <= threshold {
return
Expand Down

0 comments on commit 25a7459

Please sign in to comment.