Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 6da8ddc

Browse files
committed
add gitHash and env fields
1 parent 84e2582 commit 6da8ddc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cmd/trade.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

support/metrics/metricsTracker.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ type event struct {
5151
// TODO DS Add time to run update function as `millisForUpdate`.
5252
type 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,

0 commit comments

Comments
 (0)