From 91fe7c625b23e7f50677ff00a7040d1fbbfeab7b Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Fri, 29 Nov 2024 16:30:25 +0000 Subject: [PATCH] Add customization to print events drop them --- src/customizations/before-send.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/customizations/before-send.ts b/src/customizations/before-send.ts index 0f28c4d4a..dc72de278 100644 --- a/src/customizations/before-send.ts +++ b/src/customizations/before-send.ts @@ -117,3 +117,9 @@ export function sampleByEvent(eventNames: KnownEventName[], percent: number): Be : null } } + +export const printAndDropEverything: BeforeSendFn = (result) => { + // eslint-disable-next-line no-console + console.log('Would have sent event:', result) + return null +}