Skip to content

Commit 27c51c4

Browse files
committed
transactions are their own transactions (turtles, all the way down)
1 parent eff45d1 commit 27c51c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/tracing/src/transaction.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export class Transaction extends SpanClass implements TransactionInterface {
3232
this.name = transactionContext.name ? transactionContext.name : '';
3333

3434
this._trimEnd = transactionContext.trimEnd;
35+
36+
// this is because transactions are also spans, and spans have a transaction pointer
37+
this.transaction = this;
3538
}
3639

3740
/**

0 commit comments

Comments
 (0)