Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gp] track git event with instanceId #16693

Merged
merged 1 commit into from
Mar 6, 2023
Merged

[gp] track git event with instanceId #16693

merged 1 commit into from
Mar 6, 2023

Conversation

akosyakov
Copy link
Member

Description

instead of workspaceInstanceId to allow cross events matching in Mixpanel

Related Issue(s)

Fixes #

How to test

  • Open this PR on gitpod.io
  • Run validate.sh from components/supervisor
  • In started workspace use git push/fetch etc.
  • Open Mixpanel for Gitpod go to Events view and filter out by git_comman event with instanceId property matching to instance id from gp info.

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

instead of workspaceInstanceId to allow cross events matching in Mixpanel
@@ -76,6 +80,7 @@ var gitTrackCommand = &cobra.Command{
log.WithField("command", gitTrackCommandOpts.GitCommand).
Info("tracking the GitCommand event")

// TODO(ak) use segment directly + supervisor info to get workspace and isntance IDs, don't use server
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is for future, not sure what would be consequence of moving to another source, i.e. from trusted to untrusted.

For Mixpanel there are none, not sure about other reports. cc @jakobhero @loujaybee

@roboquat roboquat merged commit b9f2657 into main Mar 6, 2023
@roboquat roboquat deleted the ak/git_align_analytics branch March 6, 2023 21:05
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed Change is completely running in production release-note-none size/XS team: IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants