-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[telemetry] Add new telemetry.data
config option for telemetry
#10925
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
Conversation
started the job as gitpod-build-tar-preview-telemetry.1 because the annotations in the pull request description changed |
88ce9d6
to
4f7a090
Compare
/werft run 👍 started the job as gitpod-build-tar-preview-telemetry.3 |
4f7a090
to
35e871b
Compare
/werft run 👍 started the job as gitpod-build-tar-preview-telemetry.6 |
/werft run 👍 started the job as gitpod-build-tar-preview-telemetry.7 |
7ba7af9
to
f1c2689
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-preview-telemetry.11 |
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-preview-telemetry.13 |
3b9afb3
to
0182d4e
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-preview-telemetry.15 |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
Looks fine. I've approved with a comment - your choice what you do with it
@@ -56,6 +56,11 @@ var sendCmd = &cobra.Command{ | |||
Set("totalWorkspaces", data.TotalWorkspaces). | |||
Set("totalInstances", data.TotalInstances) | |||
|
|||
platform := os.Getenv("GITPOD_INSTALLATION_PLATFORM") | |||
if platform != "" { | |||
properties.Set("platform", platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to leave the platform
as blank in the Segment data, or do we want something like unknown
in there?
f308f63
to
34b991d
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-preview-telemetry.18 |
1fbebc6
to
b9591f7
Compare
669c002
to
1b4e129
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-preview-telemetry.23 |
Tested this on both
Also, Verified that our telemetry store is receving the new property as expected! |
GITPOD_INSTALLATION_PLATFORM
telemetry variabledata.platform
config option for telemetry
data.platform
config option for telemetrytelemetry.data
config option for telemetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🚀 Thanks for taking my comments into consideration! 🧡
1b4e129
to
66bd0f1
Compare
Fixes #10766 This PR adds a new `experimental.telemetry.data.platform` config option that is then passed to `GITPOD_INSTALLATION_PLATFORM` env variable, which is then transmitted by the `gitpod-telemetry` job as the `platform` property into our telemetry store. The value of this env variable is then overrided by each install method. This env can have the following values: - `installer` by default as when the installation is done directly through the installer, We don't have enough information about the environment. - [One of the `distribution` values](https://docs.replicated.com/reference/template-functions-static-context#distribution) when done through `kots`. This would have the distribution in which Gitpod is being installed, and is dependent on `kots`. - `local-preview` when the installation is done through the new preview install method. As the changes show in the PR, each installation method overrides the value. Signed-off-by: Tarun Pothulapati <[email protected]>
66bd0f1
to
2f7eaa8
Compare
/unhold |
Description
This PR adds a new
experimental.telemetry.data.platform
config optionthat is then passed to
GITPOD_INSTALLATION_PLATFORM
env variable, whichis then transmitted by the
gitpod-telemetry
job as theplatform
property into our telemetry store. The value of this env variable
is then overrided by each install method.
This env can have the following values:
installer
by default as when the installation is done directlythrough the installer, We don't have enough information
about the environment.
distribution
valueswhen done through
kots
. This would have the distribution in whichGitpod is being installed, and is dependent on
kots
.local-preview
when the installation is done through the newpreview install method.
As the changes show in the PR, each installation method overrides
the value.
Signed-off-by: Tarun Pothulapati [email protected]
Related Issue(s)
Fixes #10766
How to test
Check the
gitpod-telemetry
cronjob to have the new env, that is setto the appropriate value based on the installation method
Release Notes
Documentation
Werft options: