Skip to content
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

Reduce size of dependency #187

Open
seanamos opened this issue Feb 5, 2025 · 3 comments
Open

Reduce size of dependency #187

seanamos opened this issue Feb 5, 2025 · 3 comments

Comments

@seanamos
Copy link

seanamos commented Feb 5, 2025

Given the intended target for this package is lambda functions, minimizing the impact on the size of the final binary and reducing dependencies should be a high priority.

Adding datadog-lambda-go as a dependency can significantly increase the size of the final binary and brings in a large amount of transitive dependencies.

Before adding dependency:

➜ du -h bin/linux/arm64/*
8.7M    bin/linux/arm64/xxx

After adding dependency:

➜ du -h bin/linux/arm64/*
 32M    bin/linux/arm64/xxx

Specifications

  • Datadog Go Lambda package version: 1.47.0
  • Go version: 1.23.5
@krzysiek1507
Copy link
Contributor

krzysiek1507 commented Feb 28, 2025

Hey! Updating this package to use github.com/aws/aws-xray-sdk-go v2 should reduce the size I guess? v2 got rid of AWS SDK Go v1.

@krzysiek1507
Copy link
Contributor

cc @nhulston

@krzysiek1507
Copy link
Contributor

I opened a PR with the update #190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants