Skip to content

Commit

Permalink
docs(telemetry): actualize telemetry docs
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Aug 4, 2022
1 parent 379268b commit 3010971
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions docs/pages_en/internals/telemetry.md
Expand Up @@ -22,7 +22,9 @@ Below are examples of the data werf transmits:
"attributes": {
"arch": "amd64",
"os": "linux",
"version": "dev"
"version": "dev",
"CI": true,
"ciName": "gitlab"
},
"eventType": "CommandStarted",
"eventData": {
Expand All @@ -48,7 +50,9 @@ Below are examples of the data werf transmits:
"attributes": {
"arch": "amd64",
"os": "linux",
"version": "dev"
"version": "dev",
"ci": true,
"ciName": "gitlab"
},
"eventType": "CommandExited",
"eventData": {
Expand All @@ -69,7 +73,9 @@ In the examples above, the following usage data is sent:
* `os`;
* `arch`;
* `trdl group-channel`;
* `werf version`.
* `werf version`;
* `ci` — whether CI-system is used;
* `ciName` — detected name of CI/CD system (gitlab, github-actions, etc.).
* `eventType` — type of event:
* `CommandStarted`;
* `CommandExited`;
Expand Down
10 changes: 8 additions & 2 deletions docs/pages_ru/internals/telemetry.md
Expand Up @@ -22,7 +22,9 @@ permalink: internals/telemetry.html
"attributes": {
"arch": "amd64",
"os": "linux",
"version": "dev"
"version": "dev",
"ci": true,
"ciName": "gitlab"
},
"eventType": "CommandStarted",
"eventData": {
Expand All @@ -48,7 +50,9 @@ permalink: internals/telemetry.html
"attributes": {
"arch": "amd64",
"os": "linux",
"version": "dev"
"version": "dev",
"ci": true,
"ciName": "gitlab"
},
"eventType": "CommandExited",
"eventData": {
Expand All @@ -70,6 +74,8 @@ permalink: internals/telemetry.html
* `arch`;
* `trdl group-channel`;
* `werf version`.
* `ci` — используется ли CI/CD система;
* `ciName` — имя используемой CI/CD системы (gitlab, github-actions, и т.п.).
* `eventType` — тип события:
* `CommandStarted`;
* `CommandExited`;
Expand Down
2 changes: 1 addition & 1 deletion pkg/telemetry/telemetrywerfio.go
Expand Up @@ -136,7 +136,7 @@ func (t *TelemetryWerfIO) getAttributes() map[string]interface{} {

{
if isCI := util.GetBoolEnvironmentDefaultFalse("CI"); isCI {
attributes["CI"] = true
attributes["ci"] = true
}
if isGitlabCI := util.GetBoolEnvironmentDefaultFalse("GITLAB_CI"); isGitlabCI {
attributes["ciName"] = "gitlab"
Expand Down

0 comments on commit 3010971

Please sign in to comment.