Skip to content

Commit 9c9b9b5

Browse files
author
Luca Forstner
committed
Add comment
1 parent 5d889aa commit 9c9b9b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/nextjs/src/server/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ export function init(options: NodeOptions): NodeClient | undefined {
301301
),
302302
);
303303

304+
// Use the preprocessEvent hook instead of an event processor, so that the users event processors receive the most
305+
// up-to-date value, but also so that the logic that detects changes to the transaction names to set the source to
306+
// "custom", doesn't trigger.
304307
client?.on('preprocessEvent', event => {
305308
// Enhance route handler transactions
306309
if (

0 commit comments

Comments
 (0)