44 "encoding/json"
55 "fmt"
66 "os"
7- "runtime"
87 "time"
98
109 "github.com/bitrise-io/bitrise/v2/configs"
@@ -30,7 +29,6 @@ const (
3029 stepPreparationFailedEventName = "step_preparation_failed"
3130 stepSkippedEventName = "step_skipped"
3231 cliWarningEventName = "cli_warning"
33- toolVersionSnapshotEventName = "tool_version_snapshot"
3432 cliCommandEventName = "cli_command"
3533 toolSetupEventName = "cli_tool_setup"
3634
@@ -63,7 +61,6 @@ const (
6361 osProperty = "os"
6462 stackRevIDProperty = "stack_rev_id"
6563 snapshotProperty = "snapshot"
66- toolVersionsProperty = "tool_versions"
6764 commandProperty = "command"
6865 subcommandProperty = "subcommand"
6966 flagsProperty = "flags"
@@ -114,7 +111,6 @@ type Tracker interface {
114111 SendStepStartedEvent (properties analytics.Properties , info StepInfo , activateDuration time.Duration , expandedInputs map [string ]interface {}, originalInputs map [string ]string )
115112 SendStepFinishedEvent (properties analytics.Properties , result StepResult )
116113 SendCLIWarning (message string )
117- SendToolVersionSnapshot (toolVersions , snapshotType string )
118114 SendCommandInfo (command , subcommand string , flags []string )
119115 SendToolSetupEvent (provider string , request provider.ToolRequest , result provider.ToolInstallResult , is_successful bool , setupTime time.Duration )
120116 IsTracking () bool
@@ -231,28 +227,6 @@ func (t tracker) SendCommandInfo(command, subcommand string, flags []string) {
231227 t .tracker .Enqueue (cliCommandEventName , properties )
232228}
233229
234- func (t tracker ) SendToolVersionSnapshot (toolVersions , snapshotType string ) {
235- if ! t .stateChecker .Enabled () {
236- return
237- }
238-
239- stackRevID := t .envRepository .Get (stackRevIDKey )
240- if stackRevID == "" {
241- // Legacy
242- stackRevID = t .envRepository .Get (macStackRevIDKey )
243- }
244-
245- properties := analytics.Properties {
246- ciModeProperty : t .envRepository .Get (configs .CIModeEnvKey ) == "true" ,
247- osProperty : runtime .GOOS ,
248- stackRevIDProperty : stackRevID ,
249- snapshotProperty : snapshotType ,
250- toolVersionsProperty : toolVersions ,
251- }
252-
253- t .tracker .Enqueue (toolVersionSnapshotEventName , properties )
254- }
255-
256230func (t tracker ) SendStepStartedEvent (properties analytics.Properties , info StepInfo , activateDuration time.Duration , expandedInputs map [string ]interface {}, originalInputs map [string ]string ) {
257231 if ! t .stateChecker .Enabled () {
258232 return
0 commit comments