Skip to content

Commit

Permalink
[installation-telemetry]: log data sent to Segment
Browse files Browse the repository at this point in the history
This is to provide transparency in what we're logging and to
prove we're not storing any data that could identify an installation
  • Loading branch information
Simon Emms authored and roboquat committed Jan 21, 2022
1 parent 4fcb65d commit 7eb7d13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/installation-telemetry/cmd/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ var sendCmd = &cobra.Command{
err = client.Close()
}()

client.Enqueue(analytics.Track{
telemetry := analytics.Track{
UserId: domainHash,
Event: "Installation telemetry",
Properties: analytics.NewProperties().
Set("version", versionId),
})
}

client.Enqueue(telemetry)

log.Info("installation-telemetry has successfully sent data - exiting")
log.WithField("telemetry", telemetry).Info("installation-telemetry has successfully sent data - exiting")

return err
},
Expand Down

0 comments on commit 7eb7d13

Please sign in to comment.