mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-08 04:14:32 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user