observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.55k stars 122 forks source link

telemetry commands #510

Open mbostock opened 10 months ago

mbostock commented 10 months ago

Can we add observable telemetry enable and observable telemetry disable commands to enable and disable telemetry (in addition to the OBSERVABLE_TELEMETRY_DISABLE environment variable?

Fil commented 10 months ago

observable telemetry remove-all-history?

visnup commented 10 months ago

It’d be possible to do a remove if they sent their device id. Supposedly the uuidv4 Node crypto generates is “cryptographically pseudorandom” so it should be convincing if you can tell us one. I’d be kinda wary of someone abusing a remove api to spam us with lots of generated uuids though. I guess we could rate limit it or if you pass a device id that’s not found it exponentially increases your wait time to try again.

mbostock commented 10 months ago

@Fil that sounds like a separate feature request that should be tracked and discussed separately. This issue is about exposing functionality we already have through commands (rather than environment variables).

visnup commented 9 months ago

probably a related command to tag the current user as a developer and send that extra flag along, to split ourselves out in the data. Similar to HOMEBREW_DEVELOPER.