Skip to content

Commit bfe5ae0

Browse files
committed
fix: completed metric
1 parent 1f73b4a commit bfe5ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func Go(fn Func, opts ...Option) <-chan error {
205205
defer o.runningCounter.Add(ctx, -1, attrs)
206206
}
207207
if o.completedCounter != nil {
208-
defer o.runningCounter.Add(ctx, 1, attrs, metric.WithAttributes(
208+
defer o.completedCounter.Add(ctx, 1, attrs, metric.WithAttributes(
209209
attribute.Bool("error", err != nil),
210210
))
211211
}

0 commit comments

Comments
 (0)