feat(telemetry): switch to SendForModule for auto-version resolution

Replace telemetry.Send(name, PKG_VERSION) with telemetry.SendForModule
so the binary reports its release version automatically from
runtime/debug.BuildInfo whenever PKG_VERSION isn't injected (e.g.
`go install` without ldflags). The goreleaser path still wins because
goreleaser's -X main.PKG_VERSION={{.Version}} populates the fallback,
but `go install github.com/lukaszraczylo/semver-generator@vX.Y.Z`
users now also get the correct version without ldflag plumbing.

Bumps oss-telemetry to v0.2.1.
This commit is contained in:
2026-05-22 23:34:37 +01:00
parent dfbc4d4012
commit 888415366a
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ require (
github.com/go-git/go-git/v5 v5.19.1
github.com/lithammer/fuzzysearch v1.1.8
github.com/lukaszraczylo/graphql-monitoring-proxy v0.45.1
github.com/lukaszraczylo/oss-telemetry v0.0.0-20260521005811-e02d51419c52
github.com/lukaszraczylo/oss-telemetry v0.2.1
github.com/lukaszraczylo/pandati v0.0.29
github.com/spf13/cobra v1.10.2
github.com/spf13/viper v1.21.0