Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions api/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,10 @@ func main() {

// What the telemetry reporter and the admin preview both collect from.
telemetryDeps := telemetry.Deps{
Kube: k8s,
Store: store,
Version: Version,
Kube: k8s,
Registry: reg,
Store: store,
Version: Version,
Flags: telemetry.Flags{
CaptureEnabled: cfg.captureFeatureEnabled,
OIDCConfigured: cfg.oidcIssuer != "",
Expand Down
2 changes: 1 addition & 1 deletion api/internal/handlers/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
// first-login notice lists (contracts/report-schema.md).
var (
noticeBasicFields = []string{"version", "servers", "templates"}
noticeExtendedFields = []string{"installId", "env.k8s", "env.distro", "env.arch", "env.nodes", "games", "features"}
noticeExtendedFields = []string{"installId", "env.k8s", "env.distro", "env.arch", "env.nodes", "env.deployment", "games", "features"}
)

// TelemetrySettings is the install-time telemetry setting the config and
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handlers/telemetry_envtest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func TestTelemetryNotice_PendingOnlyForManagersOnADefaultInstallWithADestination
fields, _ := got["fields"].(map[string]any)
basic, _ := fields["basic"].([]any)
extended, _ := fields["extended"].([]any)
if len(basic) != 3 || len(extended) != 7 {
t.Fatalf("fields = %v, want 3 basic and 7 extended", fields)
if len(basic) != 3 || len(extended) != 8 {
t.Fatalf("fields = %v, want 3 basic and 8 extended", fields)
}
})

Expand Down
Loading
Loading