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
  LOLCATHOST_DISABLE_TELEMETRY=1
This commit is contained in:
2026-05-21 03:05:06 +01:00
parent a791fe688d
commit a2970a58df
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -16,6 +16,7 @@ import (
"github.com/lukaszraczylo/lolcathost/internal/protocol"
"github.com/lukaszraczylo/lolcathost/internal/tui"
"github.com/lukaszraczylo/lolcathost/internal/version"
telemetry "github.com/lukaszraczylo/oss-telemetry"
)
// version is set at compile time via ldflags
@@ -27,6 +28,8 @@ const (
)
func main() {
telemetry.Send("lolcathost", appVersion)
// Flags
daemonMode := flag.Bool("daemon", false, "Run as daemon (called by LaunchDaemon/systemd)")
installFlag := flag.Bool("install", false, "Install the daemon service (requires sudo)")