-
Notifications
You must be signed in to change notification settings - Fork 828
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
support treeshaking to reduce bundle size for web project ? #1949
Comments
I'd like to second this request. I'm profiling the impact on our production build and noticing that adding a number of opentelemetry packages is adding roughly 60kb~ to the final build, which is really large. It will have a negative impact on frontend performance... |
@jessebond2 Could you please provide the list of otel dependencies you are using ? If you can also have the details of which package is the heaviest, that would help a lot ! |
Hey @vmarchaud, sorry for the delayed response. Here's the list of packages I tried using and the incremental size diffs each package added. This was from the output of our production webpack build. I think otel/core added around 10KB~ but wasn't listed in the table |
We've enabled tree-shaking in #3329. |
it seems otel grows bigger and bigger, perhaps we can add an es entry like module in package.json
The text was updated successfully, but these errors were encountered: