Skip to content

Commit

Permalink
feat: send to the analytics if the user is using a GitPod (#3861)
Browse files Browse the repository at this point in the history
* send to the analytics if the user is using a gitup

* add changelog

---------

Co-authored-by: Pantani <Pantani>
  • Loading branch information
Pantani authored Dec 21, 2023
1 parent 7d39994 commit e817cdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ignite/internal/analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions ignite/pkg/gacli/gacli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
)

Expand Down

0 comments on commit e817cdc

Please sign in to comment.