feat: anonymous usage telemetry via oss-telemetry

Send a single fire-and-forget ping at startup to help track adoption
and version spread. No persistent identifiers are collected.

Opt out via any of:
  DO_NOT_TRACK=1
  OSS_TELEMETRY_DISABLED=1
  SEMVER_GENERATOR_DISABLE_TELEMETRY=1
This commit is contained in:
2026-05-21 02:45:29 +01:00
parent a223f15e1c
commit 521e5c1ff1
3 changed files with 13 additions and 36 deletions
+9 -1
View File
@@ -15,13 +15,21 @@ limitations under the License.
*/
package main
import "github.com/lukaszraczylo/semver-generator/cmd"
import (
"time"
telemetry "github.com/lukaszraczylo/oss-telemetry"
"github.com/lukaszraczylo/semver-generator/cmd"
)
var (
PKG_VERSION string
)
func main() {
telemetry.Send("semver-generator", PKG_VERSION)
defer telemetry.Wait(2 * time.Second)
cmd.PKG_VERSION = PKG_VERSION
cmd.Execute()
}