@aws-toolkits/telemetry
v1.0.290
Published
A library used by the AWS Toolkit, Amazon Q for VSCode to provide telemetry
Downloads
37,920
Keywords
Readme
AWS Toolkit/Amazon Q for VSCode Telemetry
This package contains scripts and files to generate telemetry calls for:
Usage
To generate telemetry and see the result:
- run
npm run build
to produce thelib/
dir. - run:
node ./lib/generateTelemetry.js --output=telemetry.gen.ts
- The script has two arguments:
--extraInput
list of paths to telemetry JSON files, seperated by commas. For example, "--extraInput=abc.json,/abc/bcd.json"--output
path where the final output will go. For example, "--output=abc.ts"
- The script has two arguments:
To generate telemetry for VSCode from a downstream project,
- install this package in your package.json
- run:
node node_modules/@aws-toolkits/telemetry/lib/generateTelemetry.js --output=<path/to/file>.ts