Skip to content

Commit 90c57a5

Browse files
authored
fix: make telemetry source a string not an enum (#7390)
1 parent 9c030a8 commit 90c57a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/telemetry/telemetry.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ func (r *remoteReporter) deployment() error {
233233

234234
// Tracks where Coder was installed from!
235235
installSource := os.Getenv("CODER_TELEMETRY_INSTALL_SOURCE")
236-
if installSource != "" && installSource != "aws_marketplace" && installSource != "fly.io" {
237-
return xerrors.Errorf("invalid installce source: %s", installSource)
236+
if len(installSource) > 64 {
237+
return xerrors.Errorf("install source must be <=64 chars: %s", installSource)
238238
}
239239

240240
data, err := json.Marshal(&Deployment{

0 commit comments

Comments
 (0)