Skip to content

Commit

Permalink
Add customization to print events drop them
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 29, 2024
1 parent 2eb7ecc commit 91fe7c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/customizations/before-send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 91fe7c6

Please sign in to comment.