Commit 263523c 1 parent 77f4db3 commit 263523c Copy full SHA for 263523c
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package routinghelpers
3
3
import (
4
4
"context"
5
5
"errors"
6
- "fmt"
7
6
"reflect"
8
7
"sync"
9
8
"sync/atomic"
@@ -387,7 +386,7 @@ func getChannelOrErrorParallel[T any](
387
386
blocking .Add (1 ) // start at one so we don't cancel while dispatching
388
387
var sent atomic.Bool
389
388
390
- for _ , r := range routers {
389
+ for i , r := range routers {
391
390
ctx , span := tracer .StartSpan (ctx , composeName + ".worker" )
392
391
isBlocking := ! isSearchValue || ! r .DoNotWaitForSearchValue
393
392
if isBlocking {
@@ -398,7 +397,7 @@ func getChannelOrErrorParallel[T any](
398
397
span .SetAttributes (
399
398
attribute .Bool ("blocking" , isBlocking ),
400
399
attribute .Stringer ("type" , reflect .TypeOf (r .Router )),
401
- attribute .String ( "string " , fmt . Sprint ( r . Router ) ),
400
+ attribute .Int ( "routingNumber " , i ),
402
401
)
403
402
}
404
403
You can’t perform that action at this time.
0 commit comments