Skip to content

Commit dccf588

Browse files
committed
only use scope transaction name if event doesn't already have a transaction
1 parent ff4f97f commit dccf588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hub/src/scope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export class Scope implements ScopeInterface {
465465
event.level = this._level;
466466
}
467467
if (this._transactionName) {
468-
event.transaction = this._transactionName;
468+
event.transaction = event.transaction || this._transactionName;
469469
}
470470

471471
// We want to set the trace context for normal events only if there isn't already

0 commit comments

Comments
 (0)