From 5c9a1f8caba4375a02b8f45f2a0658421273619a Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Wed, 2 Nov 2022 07:52:14 -0700 Subject: [PATCH] add `beforeSendTransaction` to comment in `getIntegrationsToSetup` --- packages/core/src/integration.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/integration.ts b/packages/core/src/integration.ts index d00aa04e50c7..e80b2a0843fe 100644 --- a/packages/core/src/integration.ts +++ b/packages/core/src/integration.ts @@ -65,10 +65,10 @@ export function getIntegrationsToSetup(options: Options): Integration[] { const finalIntegrations = filterDuplicates(integrations); - // The `Debug` integration prints copies of the `event` and `hint` which will be passed to `beforeSend`. It therefore - // has to run after all other integrations, so that the changes of all event processors will be reflected in the - // printed values. For lack of a more elegant way to guarantee that, we therefore locate it and, assuming it exists, - // pop it out of its current spot and shove it onto the end of the array. + // The `Debug` integration prints copies of the `event` and `hint` which will be passed to `beforeSend` or + // `beforeSendTransaction`. It therefore has to run after all other integrations, so that the changes of all event + // processors will be reflected in the printed values. For lack of a more elegant way to guarantee that, we therefore + // locate it and, assuming it exists, pop it out of its current spot and shove it onto the end of the array. const debugIndex = finalIntegrations.findIndex(integration => integration.name === 'Debug'); if (debugIndex !== -1) { const [debugInstance] = finalIntegrations.splice(debugIndex, 1);