From 04eb65decaa531a906313cbe0e2ca42c04383824 Mon Sep 17 00:00:00 2001 From: Pantani Date: Thu, 21 Dec 2023 11:39:57 -0300 Subject: [PATCH 1/3] fix analytics event name --- ignite/pkg/gacli/gacli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignite/pkg/gacli/gacli.go b/ignite/pkg/gacli/gacli.go index df5e5ef9c9..afd90365a0 100644 --- a/ignite/pkg/gacli/gacli.go +++ b/ignite/pkg/gacli/gacli.go @@ -115,7 +115,7 @@ func (c Client) SendMetric(metric Metric) error { return c.Send(Body{ ClientID: metric.SessionID, Events: []Event{{ - Name: metric.Cmd, + Name: metric.Name, Params: metric, }}, }) From b40b6ef8467999f9d63623c337c697f6db07308f Mon Sep 17 00:00:00 2001 From: Pantani Date: Thu, 21 Dec 2023 11:46:04 -0300 Subject: [PATCH 2/3] use cmd with _ --- ignite/pkg/gacli/gacli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ignite/pkg/gacli/gacli.go b/ignite/pkg/gacli/gacli.go index afd90365a0..4cf7f7ace5 100644 --- a/ignite/pkg/gacli/gacli.go +++ b/ignite/pkg/gacli/gacli.go @@ -5,6 +5,7 @@ import ( "encoding/json" "net/http" "net/url" + "strings" "time" "github.com/ignite/cli/v28/ignite/pkg/errors" @@ -115,7 +116,7 @@ func (c Client) SendMetric(metric Metric) error { return c.Send(Body{ ClientID: metric.SessionID, Events: []Event{{ - Name: metric.Name, + Name: strings.ReplaceAll(metric.Cmd, " ", "_"), Params: metric, }}, }) From 09a445252cf36b7d6773a86252b94347d8b06b24 Mon Sep 17 00:00:00 2001 From: Pantani Date: Thu, 21 Dec 2023 12:10:55 -0300 Subject: [PATCH 3/3] add changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 2489403bc2..ffc0cd541c 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,7 @@ - [#3833](https://github.com/ignite/cli/pull/3833) Improve Cosmos SDK detection to support SDK forks - [#3849](https://github.com/ignite/cli/pull/3849) Add missing `tx.go` file by default and enable cli if autocli does not exist - [#3851](https://github.com/ignite/cli/pull/3851) Add missing ibc interfaces to chain client +- [#3860](https://github.com/ignite/cli/pull/3860) Fix analytics event name ## [`v28.0.0`](https://github.com/ignite/cli/releases/tag/v28.0.0)