datadog-api-client-typescript icon indicating copy to clipboard operation
datadog-api-client-typescript copied to clipboard

Package size

Open andreyvital opened this issue 2 years ago • 5 comments

Yo datadoggers, how's it going?

Is there any way to avoid that big package size?

image

I am deploying on lambda which runs on size constraints, and even by stripping away *.map and *.d.ts there's still 10mb of diet to do 🤷🏻

For now I'm replacing calls to the SDK with raw HTTP requests. However, I wanted to share that feedback because it makes the usage of the native TS SDK very prohibitive.

andreyvital avatar Aug 08 '23 14:08 andreyvital

Hi,

Thanks for your report. Unfortunately I don't think there is a quick fix here. Stripping docs and comments only shave a few MB, the core seems to be code. Basic minification doesn't seem to change that much either. We'll update if we find a way.

therve avatar Aug 17 '23 12:08 therve

Thanks!

andreyvital avatar Aug 17 '23 19:08 andreyvital

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.

github-actions[bot] avatar Oct 19 '23 00:10 github-actions[bot]

Joining the request to fix this, we can't use this lib when it is bloated like that and resort to using raw HTTP API requests

yoga-braavos avatar Jun 03 '24 09:06 yoga-braavos