Usage collection
By default, k6 sends an anonymous usage report each time it is run, so that we can track relevant information to be able to build the product making better data-driven decisions. Prioritizing the features that benefit the most and reducing the impact of changes.
The report can be turned off by setting the
no usage report option setting the environment variable K6_NO_USAGE_REPORT or by adding the flag --no-usage-report when executing k6.
The usage report does not contain any information about what you are testing. The contents are the following:
- The k6 version (string, e.g. “0.17.2”)
- Max VUs configured (number)
- Test duration (number)
- Total stages duration (number)
- VU iterations configured (number)
- The running program’s operating system target (
darwin,freebsd,linux…) - The running program’s architecture target (386, amd64, arm, s390x…)
- The list of JavaScript imported modules (
k6/http,k6/experimental/webcrypto, …) - The list of used outputs (
json,influxdb, …) - The list of used extensions, each with its Go module path, version, and type (
js,output, orsubcommand) - The test run ID if the test was executed in the cloud or was outputed to it
- The number of parsed files and how many were TypeScript files.
- The number of times
requirewas called. - Whether
globalwas accessed.
Note
The module and output lists contain only k6 built-in names. An extension is reported only if it’s listed in the public k6 extension catalog. Private and unlisted extensions are never reported.
Running an extension subcommand (k6 x <name>) also sends a usage report. It contains the k6 version, the operating system and architecture targets, whether k6 runs in a CI system, and the invoked extension’s entry as described above. The K6_NO_USAGE_REPORT environment variable and the noUsageReport configuration file option turn this report off too. The --no-usage-report flag has no effect here, because k6 x passes all flags unchanged to the extension.
This report is sent to an HTTPS server that collects statistics on k6 usage.
k6 is an open-source project and for those interested, the actual code that generates and sends the usage report can be directly reviewed here.