mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
This adds a build flag to `exporter.go` in `coderd/tracing` that skips compiling the file in slim builds. This file brings in some relatively hefty dependencies that were growing the size of the slim binary a few megabytes. All files that import `exporter.go` also aren't included in slim builds, so this is safe. We end up saving 5.4MB on the Linux slim binary.