Skip to content

Commit 0ac3d31

Browse files
committed
add comment about description
1 parent ae37b6f commit 0ac3d31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/tracing/transaction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export class Transaction extends SpanClass implements TransactionInterface {
4444
*/
4545
public constructor(transactionContext: TransactionContext, hub?: Hub) {
4646
super(transactionContext);
47+
// We need to delete description since it's set by the Span class constructor
48+
// but not needed for transactions.
4749
delete this.description;
4850

4951
this._measurements = {};

0 commit comments

Comments
 (0)