You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[telemetry] Add uid, org_id, and nix build event (#2018)
## Summary
This PR improves segment logging by:
* Adding orgID if user is logged in.
* Using userID if user is logged in.
* Removing anonymousID if userID is non zero. (Segment will remove
userID if we pass an anonymousID)
* Add new event to track `nix build`
This allows us to:
* Use orgID to segment data, potentially allowing individual orgs to
export/use their own data as needed.
* Track logged in users.
* Track which packages are slow to build.
Private Notes:
* We still respect `DO_NOT_TRACK` even if user is logged in.
* userID and orgID data is only sent if user is logged in.
cc: @Lagoja
## How was it tested?
Logged to development segment/amplitude, built a quick table showing nix
average build times:
<img width="1208" alt="image"
src="https://github.com/jetify-com/devbox/assets/544948/4ec2d49e-c886-4032-a5c6-9dff6986d780">
0 commit comments