diff --git a/changelog.md b/changelog.md index ffc0cd541c..f330b82302 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,7 @@ - [#3786](https://github.com/ignite/cli/pull/3786) Add artifacts for publishing Ignite to FlatHub and Snapcraft - [#3830](https://github.com/ignite/cli/pull/3830) Remove gRPC info from Ignite Apps errors +- [#3861](https://github.com/ignite/cli/pull/3861) Send to the analytics if the user is using a GitPod ### Changes diff --git a/ignite/internal/analytics/analytics.go b/ignite/internal/analytics/analytics.go index abc57802ba..ee99314693 100644 --- a/ignite/internal/analytics/analytics.go +++ b/ignite/internal/analytics/analytics.go @@ -12,6 +12,7 @@ import ( "github.com/spf13/cobra" "github.com/ignite/cli/v28/ignite/pkg/gacli" + "github.com/ignite/cli/v28/ignite/pkg/gitpod" "github.com/ignite/cli/v28/ignite/pkg/randstr" "github.com/ignite/cli/v28/ignite/version" ) @@ -57,6 +58,7 @@ func SendMetric(wg *sync.WaitGroup, cmd *cobra.Command) { Arch: runtime.GOARCH, SessionID: dntInfo.Name, Version: version.Version, + IsGitPod: gitpod.IsOnGitpod(), } wg.Add(1) diff --git a/ignite/pkg/gacli/gacli.go b/ignite/pkg/gacli/gacli.go index 4cf7f7ace5..4449189b9d 100644 --- a/ignite/pkg/gacli/gacli.go +++ b/ignite/pkg/gacli/gacli.go @@ -39,6 +39,7 @@ type ( Version string `json:"version,omitempty"` SessionID string `json:"session_id,omitempty"` EngagementTimeMsec string `json:"engagement_time_msec,omitempty"` + IsGitPod bool `json:"is_git_pod,omitempty"` } )