@@ -337,7 +337,7 @@ func (c *Client) QueryRow(ctx context.Context, q string, opts ...options.Execute
337
337
onDone (finalErr )
338
338
}()
339
339
340
- row , err := clientQueryRow (ctx , c .pool (), q , settings , withTrace (c .config .Trace ()))
340
+ row , err := clientQueryRow (ctx , c .pool (), q , settings , withStreamResultTrace (c .config .Trace ()))
341
341
if err != nil {
342
342
return nil , xerrors .WithStackTrace (err )
343
343
}
@@ -348,7 +348,7 @@ func (c *Client) QueryRow(ctx context.Context, q string, opts ...options.Execute
348
348
func clientExec (ctx context.Context , pool sessionPool , q string , opts ... options.Execute ) (finalErr error ) {
349
349
settings := options .ExecuteSettings (opts ... )
350
350
err := do (ctx , pool , func (ctx context.Context , s * Session ) (err error ) {
351
- streamResult , err := s .execute (ctx , q , settings , withTrace (s .trace ))
351
+ streamResult , err := s .execute (ctx , q , settings , withStreamResultTrace (s .trace ))
352
352
if err != nil {
353
353
return xerrors .WithStackTrace (err )
354
354
}
@@ -397,7 +397,7 @@ func clientQuery(ctx context.Context, pool sessionPool, q string, opts ...option
397
397
) {
398
398
settings := options .ExecuteSettings (opts ... )
399
399
err = do (ctx , pool , func (ctx context.Context , s * Session ) (err error ) {
400
- streamResult , err := s .execute (ctx , q , options .ExecuteSettings (opts ... ), withTrace (s .trace ))
400
+ streamResult , err := s .execute (ctx , q , options .ExecuteSettings (opts ... ), withStreamResultTrace (s .trace ))
401
401
if err != nil {
402
402
return xerrors .WithStackTrace (err )
403
403
}
@@ -487,7 +487,7 @@ func (c *Client) QueryResultSet(
487
487
onDone (finalErr , rowsCount )
488
488
}()
489
489
490
- rs , rowsCount , err = clientQueryResultSet (ctx , c .pool (), q , settings , withTrace (c .config .Trace ()))
490
+ rs , rowsCount , err = clientQueryResultSet (ctx , c .pool (), q , settings , withStreamResultTrace (c .config .Trace ()))
491
491
if err != nil {
492
492
return nil , xerrors .WithStackTrace (err )
493
493
}
0 commit comments