Upgrades github.com/posthog/posthog-go up to v1.2.21
Implements anonoymous user tracking with UUIDs as the DistinctID for events. This ID is stored locally in ~/.pizza-cli/telemetry.json. Users can always delete this file or entirely disable telemetry via the global --disable-telemetry flag
Implements a sidechain Go program (build and runable via Go's -tags telemetry flag) which bootstraps the events for Posthog. Why is this needed? You can't really make a dashboard in Posthog until an event has landed in the data lake. This simplifies this process by sending the events all at once to Posthog to make dashboard creation easy
Updates the Posthog endpoint to https://us.i.posthog.com
Adds error handling for each of the capture Posthog functions (which is generally ignored in the actual flow but captured in the bootstrapping Go program)
Description
This PR does a few things:
DistinctID
for events. This ID is stored locally in~/.pizza-cli/telemetry.json
. Users can always delete this file or entirely disable telemetry via the global--disable-telemetry
flag-tags telemetry
flag) which bootstraps the events for Posthog. Why is this needed? You can't really make a dashboard in Posthog until an event has landed in the data lake. This simplifies this process by sending the events all at once to Posthog to make dashboard creation easyhttps://us.i.posthog.com
Related Tickets & Documents
Followup to #147
Tier (staff will fill in)