Skip to content

Commit e3cd6ed

Browse files
authored
CLOUDP-201346 telemetry change anonymous_id property (#2305)
1 parent 9ce4fc9 commit e3cd6ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/cli/atlas/deployments/options/deployment_opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const (
4141
spinnerSpeed = 100 * time.Millisecond
4242
// based on https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Clusters/operation/createCluster
4343
clusterNamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-]*$"
44-
MongotDockerImageName = "docker.io/mongodb/mongodb-atlas-search:preview"
44+
MongotDockerImageName = "docker.io/mongodb/mongodb-atlas-search:preview-20230914T165946Z"
4545
PausedState = "PAUSED"
4646
StoppedState = "STOPPED"
4747
IdleState = "IDLE"

internal/telemetry/event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func withAnonymousID() EventOpt {
156156
if err != nil {
157157
_, _ = log.Debugf("error generating machine id: %v\n", err)
158158
} else {
159-
event.Properties["anonymous_id"] = id
159+
event.Properties["device_id"] = id
160160
}
161161
}
162162
}

internal/telemetry/event_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func TestWithAnonymousID(t *testing.T) {
339339
config.ToolName = config.AtlasCLI
340340

341341
e := newEvent(withAnonymousID())
342-
assert.NotEmpty(t, e.Properties["anonymous_id"])
342+
assert.NotEmpty(t, e.Properties["device_id"])
343343
}
344344

345345
func TestWithDeploymentType(t *testing.T) {

0 commit comments

Comments
 (0)