File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ func (c *coreClient) buildStartSpanOptions(input buildStartSpanOptionsInput) []t
187
187
tracer .Tag (ext .SpanKind , ext .SpanKindClient ),
188
188
tracer .Tag (ext .DBSystem , ext .DBSystemValkey ),
189
189
tracer .Tag (ext .ValkeyDatabaseIndex , c .option .SelectDB ),
190
+ tracer .Tag ("db.out" , c .option .SelectDB ),
190
191
}
191
192
opts = append (opts , c .peerTags ()... )
192
193
if input .command != "" {
Original file line number Diff line number Diff line change @@ -336,6 +336,8 @@ func TestNewClient(t *testing.T) {
336
336
assert .Equal (t , "127.0.0.1" , span .Tag (ext .TargetHost ))
337
337
assert .Equal (t , valkeyPort , span .Tag (ext .PeerPort ))
338
338
assert .Equal (t , valkeyPort , span .Tag (ext .TargetPort ))
339
+ assert .Equal (t , 0 , span .Tag (ext .ValkeyDatabaseIndex ))
340
+ assert .Equal (t , 0 , span .Tag ("db.out" ))
339
341
assert .NotNil (t , span )
340
342
assert .Equal (t , tt .valkeyClientOptions .Username , span .Tag (ext .DBUser ))
341
343
assert .Equal (t , "valkey.command" , span .OperationName ())
You can’t perform that action at this time.
0 commit comments