Reduce package install size #532
Labels
enhancement accepted
An actionable enhancement for which PRs will be accepted
enhancement
New feature or request
priority: p3
Is your feature request related to a problem? Please describe.
When using this library on products like Google App Engine, all the dependencies are installed as part of deployment: https://cloud.google.com/appengine/docs/standard/nodejs/runtime#dependencies
Currently, almost 80% of our install size is just these libraries and their dependencies. This slows down deployments, and results in warning logs about the package size.
For example:
@google-cloud/opentelemetry-cloud-monitoring-exporter@0.16.0
is 103MB installed: https://packagephobia.com/result?p=@google-cloud/opentelemetry-cloud-monitoring-exporter@0.16.0@google-cloud/opentelemetry-cloud-trace-exporter
is 40.6MB installed: https://packagephobia.com/result?p=%40google-cloud%2Fopentelemetry-cloud-trace-exporterDescribe the solution you'd like
Where possible, the number and size of dependencies is cut down so that using these libraries does not negatively affect GAE deployment speed.
Describe alternatives you've considered
Manually bundling and minifying the libraries ourselves. However, this seems likely error prone and adds complexity.
The text was updated successfully, but these errors were encountered: