Skip to content

Reduce size of dependency #187

@seanamos

Description

@seanamos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions