Skip to content

Commit 61a9ff8

Browse files
authored
Merge pull request #1118 from flentini/feat/telemetry-updates
Feat/telemetry updates
2 parents d06f3d4 + 905832b commit 61a9ff8

File tree

4 files changed

+4317
-2629
lines changed

4 files changed

+4317
-2629
lines changed

lib/telemetry.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'use strict';
66

77
const { version: artilleryVersion } = require('../package.json');
8-
const isCi = require('is-ci');
8+
const { isCI, name: ciName }= require('ci-info');
99
const chalk = require('chalk');
1010
const { readArtilleryConfig, updateArtilleryConfig } = require('./util');
1111

@@ -19,7 +19,7 @@ const notice = () => {
1919
const firstRunMessage = () => {
2020
const { telemetryFirstRunMsg } = readArtilleryConfig();
2121

22-
if (isCi || telemetryFirstRunMsg) {
22+
if (isCI || telemetryFirstRunMsg) {
2323
return;
2424
}
2525

@@ -56,11 +56,15 @@ const init = () => {
5656
...data,
5757
version: artilleryVersion,
5858
os: process.platform,
59-
isCi,
59+
isCi: isCI,
6060
$ip: null,
6161
},
6262
};
6363

64+
if (isCI) {
65+
eventPayload.properties.ciName = ciName
66+
}
67+
6468
if (debugEnabled) {
6569
console.log(
6670
chalk.yellow(`Telemetry data: ${JSON.stringify(eventPayload)}`)

0 commit comments

Comments
 (0)