serverless-sentry-plugin icon indicating copy to clipboard operation
serverless-sentry-plugin copied to clipboard

Ensure all exceptions and messages have been sent to Sentry before returning

Open arabold opened this issue 7 years ago • 3 comments

See https://github.com/getsentry/raven-node/issues/338 for more details

Without this we risk to miss errors and messages as they are never sent out.

arabold avatar Jul 06 '17 20:07 arabold

Hey @arabold -- have you seen getsentry/sentry-javascript#1380

The new unified SDK seems to have remedied this. Not sure if it's crossed your radar or planned for development or not.

The new node SDK is @sentry/node and they explicitly address draining here in the docs.

I realize this means rewriting arabold/serverless-sentry-lib to use @sentry/node but figured I'd drop some links here for the sake of drawing your attention to it.

bericp1 avatar Sep 27 '18 23:09 bericp1

Thanks. Indeed I missed that update.

arabold avatar Sep 27 '18 23:09 arabold

Hello, is this the reason why I don't get any messages logged (using AWS Lambda)? Is there a workaround? Thanks

demetrio812 avatar Jul 01 '19 00:07 demetrio812