Skip to content

Commit 55311df

Browse files
ThatTobMateHazAT
authored andcommitted
fix: don't overwrite the transaction on an event if it's already been set. (#2129)
1 parent 3849c25 commit 55311df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function parseRequest(
203203
};
204204
}
205205

206-
if (options.transaction) {
206+
if (options.transaction && !event.transaction) {
207207
const transaction = extractTransaction(req, options.transaction);
208208
if (transaction) {
209209
event.transaction = transaction;

0 commit comments

Comments
 (0)