-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Support Sentry Lambda Extension with container image-based Lambda functions #20114
Copy link
Copy link
Open
Labels
Description
Problem Statement
The Sentry Lambda Extension (#17525) tunnels events through a local proxy, solving event delivery issues during Lambda freezes. However, it's only usable via the Lambda Layer ARN, which cannot be attached to container image-based Lambda functions.
We run a SvelteKit app on AWS Lambda using Lambda Web Adapter with a container image. The wrapHandler + flush() pattern doesn't apply since Lambda Web Adapter bypasses the handler. The extension would solve our event delivery reliability.
The only workarounds are vendoring the extension files from the layer zip into the Docker image or extracting them at build time via AWS CLI — both are fragile.
Solution Brainstorm
- Publish the extension as a standalone Docker image (like
public.ecr.aws/awsguru/aws-lambda-adapter) for use withCOPY --from=in Dockerfiles - Publish as an npm package installable and copyable to
/opt/extensions/ - Document the recommended approach for container image Lambdas, including how to use
tunnel: 'http://localhost:9000/envelope'with@sentry/sveltekitor@sentry/node
Additional Context
@sentry/aws-serverlessinit.ts gates the extension behindsdkSource === 'aws-lambda-layer', which doesn't pass when using the SDK via npm- Container image Lambdas are common for web frameworks using Lambda Web Adapter (SvelteKit, Next.js, Remix)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status