Skip to content

Commit d9ec83d

Browse files
committed
Propagate TraceOptions to the transaction decorator
1 parent a227edf commit d9ec83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (c *ocConn) BeginTx(ctx context.Context, opts driver.TxOptions) (tx driver.
413413
if err != nil {
414414
return nil, err
415415
}
416-
return ocTx{parent: tx, ctx: ctx}, nil
416+
return ocTx{parent: tx, ctx: ctx, options: c.options}, nil
417417
}
418418

419419
attrs = append(
@@ -428,7 +428,7 @@ func (c *ocConn) BeginTx(ctx context.Context, opts driver.TxOptions) (tx driver.
428428
if err != nil {
429429
return nil, err
430430
}
431-
return ocTx{parent: tx, ctx: ctx}, nil
431+
return ocTx{parent: tx, ctx: ctx, options: c.options}, nil
432432
}
433433

434434
// ocResult implements driver.Result

0 commit comments

Comments
 (0)