getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Serverless [AWS Lambda] increases bundle size enormously #3049

Closed taijuten closed 3 years ago

taijuten commented 3 years ago

Package + Version

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[bot] commented 3 years ago

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 commented 1 year ago

bump