This repository was archived by the owner on Feb 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,8 @@ func runTradeCmd(options inputs) {
534534 httpClient ,
535535 botStart ,
536536 version ,
537+ gitHash ,
538+ env ,
537539 runtime .GOOS ,
538540 runtime .GOARCH ,
539541 "unknown_todo" , // TODO DS Determine how to get GOARM.
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ type event struct {
5151// TODO DS Add time to run update function as `millisForUpdate`.
5252type commonProps struct {
5353 CliVersion string `json:"cli_version"`
54+ GitHash string `json:"git_hash"`
55+ Env string `json:"env"`
5456 Goos string `json:"goos"`
5557 Goarch string `json:"goarch"`
5658 Goarm string `json:"goarm"`
@@ -124,6 +126,8 @@ func MakeMetricsTracker(
124126 client * http.Client ,
125127 botStartTime time.Time ,
126128 version string ,
129+ gitHash string ,
130+ env string ,
127131 goos string ,
128132 goarch string ,
129133 goarm string ,
@@ -149,6 +153,8 @@ func MakeMetricsTracker(
149153) (* MetricsTracker , error ) {
150154 props := commonProps {
151155 CliVersion : version ,
156+ GitHash : gitHash ,
157+ Env : env ,
152158 Goos : goos ,
153159 Goarch : goarch ,
154160 Goarm : goarm ,
You can’t perform that action at this time.
0 commit comments