Datadog

How we reduced the size of our Agent Go binaries by up to 77% | Datadog

Feb 18, 2026Pierre Gimalac
How we reduced the size of our Agent Go binaries by up to 77% | Datadog
SummaryAI, from the source post

This post details how Datadog reduced the size of its Agent Go binaries by up to 77% through dependency auditing, refactoring, and re-enabling linker optimizations. It explains Go's build process, introduces tools like `go list` and `goda` for analyzing dependencies, and discusses strategies for excluding unwanted dependencies using build tags and package isolation. The team also contributed improvements to the Go toolchain.

More from the Datadog Agent Binary Size Reduction trail