8000 clean up `beforeSend`'s docstring · jonator/sentry-javascript@6ae6b3a · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ae6b3a

Browse files
committed
clean up beforeSend's docstring
1 parent fae7b24 commit 6ae6b3a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/types/src/options.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,14 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
195195
tracesSampler?: (samplingContext: SamplingContext) => number | boolean;
196196

197197
/**
198-
* A callback invoked during event submission, allowing to optionally modify
199-
* the event before it is sent to Sentry.
198+
* An event-processing callback for error and message events, guaranteed to be invoked after all other event
199+
* processors, which allows an event to be modified or dropped.
200200
*
201-
* Note that you must return a valid event from this callback. If you do not
202-
* wish to modify the event, simply return it at the end.
203-
* Returning null will cause the event to be dropped.
201+
* Note that you must return a valid event from this callback. If you do not wish to modify the event, simply return
202+
* it at the end. Returning `null` will cause the event to be dropped.
204203
*
205204
* @param event The error or message event generated by the SDK.
206-
* @param hint May contain additional information about the original exception.
205+
* @param hint Event metadata useful for processing.
207206
* @returns A new event that will be sent | null.
208207
*/
209208
beforeSend?: (event: Event, hint: EventHint) => PromiseLike<Event | null> | Event | null;

0 commit comments

Comments
 (0)
0