ibm_telemetry-dummy
v0.0.1
Published
No-op substitute for @ibm/telemetry-js.
Readme
Motivation
While @ibm/telemetry-js allows opting out of data collection, the only mechanism available to do so (setting environment variable IBM_TELEMETRY_DISABLED to 'true') isn't always practical. For example:
- An application depends on
@carbon/react, which transitively pulls in@ibm/telemetry-js. - The application's build should be platform-agnostic, so a
preinstallhook script would have to set the environment variable in a way compatible withcmd.exe, PowerShell, andsh(1). - The application is built on a tightly controlled pipeline that prohibits adding environment variables.
How to use
npm
"overrides": {
"@ibm/telemetry-js": "npm:ibm_telemetry-dummy"
}Yarn
"resolutions": {
"@ibm/telemetry-js": "npm:ibm_telemetry-dummy"
}