Skip to content

Serverless [AWS Lambda] increases bundle size enormously #3049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks
taijuten opened this issue Nov 12, 2020 · 2 comments
Closed
4 tasks

Serverless [AWS Lambda] increases bundle size enormously #3049

taijuten opened this issue Nov 12, 2020 · 2 comments
Labels
Package: serverless Issues related to the Sentry Serverless SDK Type: Improvement

Comments

@taijuten
Copy link

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • [/] other:@sentry/serverless

Version:

5.27.3

Description

I've been attempting to keep my NodeJS Lambdas very slim, to improve runtime and cold startup time. My average lambda is around 1.8kb.

However, as soon as I implement sentry-serverless each lambda jumps up to about 350kb. This is simply following the instructions as per the documentation, and then running through webpack.

I've tried different variations such as requiring the AWSLambda export only, but this makes almost no difference.
The result of this is making sentry-serverless near-unusable for lambdas which require high performance and high concurrency.

Has anyone else come across this, or have any suggestions?

@github-actions
Copy link
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@fernandogc
Copy link

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: serverless Issues related to the Sentry Serverless SDK Type: Improvement
Projects
None yet
Development

No branches or pull requests

4 participants