fix metric to use milliseconds (#5632)

This was supposed to be in milliseconds not microseconds.
This commit is contained in:
Caleb Doxsey 2025-06-02 09:36:10 -06:00 committed by GitHub
parent 6918bf83cb
commit c0a8b79ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,7 +303,7 @@ func (e *Evaluator) Evaluate(ctx context.Context, req *Request) (*Result, error)
} else if policyOutput.Allow.Value {
e.allowCount.Add(ctx, 1)
}
e.evaluationDuration.Record(ctx, time.Since(start).Microseconds())
e.evaluationDuration.Record(ctx, time.Since(start).Milliseconds())
res := &Result{
Allow: policyOutput.Allow,