f76038ac7d
* feat: add @astrojs/telemetry * feat: add telemetry events, add queueing system * feat(telemetry): record CLI events * chore: add note * feat: support generic TELEMETRY_DISABLED env var * Fix test script * shim telemetry in tests * Shim telemetry in other commands * Stub telemetry in the memory leak test * Disable telemetry in smoke tests * Adds a changeset * Run the formatter * few updates * Include config keys * Add shallow viteKeys array: : * Add vite keys and tests Co-authored-by: Nate Moore <nate@skypack.dev>
16 lines
797 B
TypeScript
16 lines
797 B
TypeScript
// This is the key that stores whether or not telemetry is enabled or disabled.
|
|
export const TELEMETRY_ENABLED = 'telemetry.enabled';
|
|
|
|
// This is the key that specifies when the user was informed about anonymous
|
|
// telemetry collection.
|
|
export const TELEMETRY_NOTIFY_DATE = 'telemetry.notifiedAt';
|
|
|
|
// This is a quasi-persistent identifier used to dedupe recurring events. It's
|
|
// generated from random data and completely anonymous.
|
|
export const TELEMETRY_ID = `telemetry.anonymousId`;
|
|
|
|
// This is the cryptographic salt that is included within every hashed value.
|
|
// This salt value is never sent to us, ensuring privacy and the one-way nature
|
|
// of the hash (prevents dictionary lookups of pre-computed hashes).
|
|
// See the `oneWayHash` function.
|
|
export const TELEMETRY_SALT = `telemetry.salt`;
|