-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
Description
Description
AWS has introduced response streaming for AWS Lambda functions a while ago.
Sentry's wrapHandler
is not equipped to handle this, as the parameters passed to the handler event, responseStream, context
are different to the traditional event, context, [callback]
parameters.
Known workarounds
While this is being worked on, you can use the following approach (thank you for providing this @JQuezada0)
export const handler = awslambda.streamifyResponse(
async function (event, responseStream, context) {
const sentryHandler = SentryServerless.wrapHandler(async function () {
return sstHandlerModule.handler(event, responseStream, context);
});
return sentryHandler(event, context, () => undefined);
},
);
seannetlife, david-gettins, cmanou and rmarscherheypiotr
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status