Skip to content

Commit a252d13

Browse files
chore: exclude otlp trace provider from slim builds (coder#16140)
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.
1 parent 2413106 commit a252d13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/tracing/exporter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !slim
2+
13
package tracing
24

35
import (

0 commit comments

Comments
 (0)