Build tags
Conditional linkage generally refers to the inclusion or exclusion of certain pieces of code or libraries during the build process.
In Go, we use build tags to achieve the same.
Here’s the current list, grouped by category.
Supported backends
Debug & development
StatsD
StatsD was deprecated in v3.28 (Spring 2025) and completely removed in v4.0 (September 2025).
Open telemetry
Intra-cluster transport
There are two alternative ways to build transport package for intra-cluster networking:
- using Go net/http, or
- with a 3rd party github.com/valyala/fasthttp aka “fasthttp”
The second option is the current default.