From c0a8b79ef1337ee63b420e2904f280c2192ffca5 Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Mon, 2 Jun 2025 09:36:10 -0600 Subject: [PATCH] fix metric to use milliseconds (#5632) This was supposed to be in milliseconds not microseconds. --- authorize/evaluator/evaluator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorize/evaluator/evaluator.go b/authorize/evaluator/evaluator.go index 4157f889c..9ee69e69c 100644 --- a/authorize/evaluator/evaluator.go +++ b/authorize/evaluator/evaluator.go @@ -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,