Skip to content

Commit b7e4622

Browse files
committed
installation-telemetry: expose licenseId field in telemetry payload
1 parent ff6b6f4 commit b7e4622

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/installation-telemetry/cmd/send.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ var sendCmd = &cobra.Command{
5757
Set("version", versionId).
5858
Set("totalUsers", data.TotalUsers).
5959
Set("totalWorkspaces", data.TotalWorkspaces).
60-
Set("totalInstances", data.TotalInstances),
60+
Set("totalInstances", data.TotalInstances).
61+
Set("licenseId", data.LicenseID),
6162
}
6263

6364
client.Enqueue(telemetry)

components/installation-telemetry/pkg/server/installationAdmin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type Data struct {
2222
TotalUsers int64 `json:"totalUsers"`
2323
TotalWorkspaces int64 `json:"totalWorkspaces"`
2424
TotalInstances int64 `json:"totalInstances"`
25+
LicenseID string `json:"licenseId,omitempty`
2526
}
2627

2728
type InstallationAdmin struct {

0 commit comments

Comments
 (0)