supabase-community / seed

Automatically seed your database with production-like dummy data based on your schema for local development and testing.
MIT License
489 stars 19 forks source link

feat: add project based telemetry #115

Closed avallete closed 7 months ago

avallete commented 7 months ago

Changes

Here is an event created from an npm install with a valid ~/.config/snaplet logged in user

Screenshot 2024-04-16 at 13 37 25

Here the same event with the user not logged in, we can filter all "real unique logged in" users via the userId is set filter:

Screenshot 2024-04-16 at 13 39 01 Screenshot 2024-04-16 at 13 38 57

Fixes S-2064

linear[bot] commented 7 months ago
S-2064 Use projectId as a telemetry id

[https://www.loom.com/share/492d35e937134309a974ea407efdc9fa](https://www.loom.com/share/492d35e937134309a974ea407efdc9fa) \*\*TL;DR\*\* * If the `userId` cannot be found, fallback over the versioned project `projectId` in the `.snaplet/config.json` * Use `:local` or `:ci` depending of the context as distinct id