Skip to content

@sentry/node v5.30.0 documentation #5077

Answered by vladanpaunovic
tlowande asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @tlowande, unfortunately, the only way you can do it is to traverse our git history and check. Try this here

/**
* @inheritDoc
*/
public captureEvent(event: Event, hint?: EventHint, scope?: Scope): string | undefined {
let eventId: string | undefined = hint && hint.event_id;
this._processing = true;
this._processEvent(event, hint, scope)
.then(finalEvent => {
// We need to check for finalEvent in case beforeSend returned null
eventId = finalEvent && finalEvent.event_id;
this._processing = false;
})
.catch(reason => {
logger.e…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tlowande
Comment options

Answer selected by vladanpaunovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants