MCPcopy
hub / github.com/cortexlabs/cortex / initTelemetry

Function initTelemetry

cli/cmd/root.go:124–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func initTelemetry() {
125 cID := clientID()
126
127 invoker := os.Getenv("CORTEX_CLI_INVOKER")
128 if invoker == "" {
129 invoker = "direct"
130 }
131
132 telemetry.Init(telemetry.Config{
133 Enabled: true,
134 UserID: cID,
135 Properties: map[string]string{
136 "client_id": cID,
137 "invoker": invoker,
138 },
139 Environment: "cli",
140 LogErrors: false,
141 BackoffMode: telemetry.NoBackoff,
142 })
143}
144
145var _rootCmd = &cobra.Command{
146 Use: "cortex",

Callers 1

initFunction · 0.85

Calls 2

InitFunction · 0.92
clientIDFunction · 0.85

Tested by

no test coverage detected