Skip to content

Commit 46c76e4

Browse files
committed
add beforeSendTransaction to comment in getIntegrationsToSetup
1 parent b0f6bbc commit 46c76e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/integration.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export function getIntegrationsToSetup(options: Options): Integration[] {
6565

6666
const finalIntegrations = filterDuplicates(integrations);
6767

68-
// The `Debug` integration prints copies of the `event` and `hint` which will be passed to `beforeSend`. It therefore
69-
// has to run after all other integrations, so that the changes of all event processors will be reflected in the
70-
// printed values. For lack of a more elegant way to guarantee that, we therefore locate it and, assuming it exists,
71-
// pop it out of its current spot and shove it onto the end of the array.
68+
// The `Debug` integration prints copies of the `event` and `hint` which will be passed to `beforeSend` or
69+
// `beforeSendTransaction`. It therefore has to run after all other integrations, so that the changes of all event
70+
// processors will be reflected in the printed values. For lack of a more elegant way to guarantee that, we therefore
71+
// locate it and, assuming it exists, pop it out of its current spot and shove it onto the end of the array.
7272
const debugIndex = finalIntegrations.findIndex(integration => integration.name === 'Debug');
7373
if (debugIndex !== -1) {
7474
const [debugInstance] = finalIntegrations.splice(debugIndex, 1);

0 commit comments

Comments
 (0)