From bfe5ae0d9d14187d8a629af8120ec61954f93721 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 13 May 2025 18:17:36 +0200 Subject: [PATCH] fix: completed metric --- go.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.go b/go.go index cb721e1..f5ec907 100644 --- a/go.go +++ b/go.go @@ -205,7 +205,7 @@ func Go(fn Func, opts ...Option) <-chan error { defer o.runningCounter.Add(ctx, -1, attrs) } if o.completedCounter != nil { - defer o.runningCounter.Add(ctx, 1, attrs, metric.WithAttributes( + defer o.completedCounter.Add(ctx, 1, attrs, metric.WithAttributes( attribute.Bool("error", err != nil), )) }