Skip to content

Commit 63c455b

Browse files
add codespace tracking (#2019)
1 parent 8da00ca commit 63c455b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/metrics/metrics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ func TrackMetrics(commandPath string, flags map[string]string) {
7979
telemetryProperties["command"] = commandPath
8080
telemetryProperties["version"] = GetCLIVersion()
8181
telemetryProperties["os"] = runtime.GOOS
82+
if utils.InsideCodespace() {
83+
telemetryProperties["codespace"] = os.Getenv(constants.CodespaceNameEnvVar)
84+
}
8285
for propertyKey, propertyValue := range flags {
8386
telemetryProperties[propertyKey] = propertyValue
8487
}

0 commit comments

Comments
 (0)