Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Posthog events bootstrapping #160

Merged
merged 2 commits into from
Sep 9, 2024
Merged

feat: Posthog events bootstrapping #160

merged 2 commits into from
Sep 9, 2024

Conversation

jpmcb
Copy link
Member

@jpmcb jpmcb commented Sep 6, 2024

Description

This PR does a few things:

  • 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)

Related Tickets & Documents

Followup to #147

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

@jpmcb jpmcb requested a review from a team September 6, 2024 23:37
cmd/auth/auth.go Show resolved Hide resolved
pkg/utils/posthog.go Outdated Show resolved Hide resolved
Co-authored-by: Nick Taylor <[email protected]>
Copy link
Member

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@jpmcb jpmcb merged commit 847426b into beta Sep 9, 2024
9 checks passed
open-sauced bot pushed a commit that referenced this pull request Sep 9, 2024
## [1.4.0-beta.1](v1.3.1-beta.2...v1.4.0-beta.1) (2024-09-09)

### 🍕 Features

* Posthog events bootstrapping ([#160](#160)) ([847426b](847426b))
open-sauced bot pushed a commit that referenced this pull request Sep 11, 2024
## [1.4.0](v1.3.0...v1.4.0) (2024-09-11)

### 🍕 Features

* Posthog events bootstrapping ([#160](#160)) ([847426b](847426b))

### 🐛 Bug Fixes

* docs generation runs outside of build matrix now ([#165](#165)) ([1e42988](1e42988))
* fixed docs generation in release workflow ([#162](#162)) ([5341e16](5341e16))
* now --tty-disable is set so the action can complete instead of hanging ([#164](#164)) ([a970a73](a970a73))
* skip interactive steps in generate codeowners with --tty-disable flag ([#159](#159)) ([49f1fd3](49f1fd3))
* use the local directory and home directory as fallback for .sauced.yaml ([#158](#158)) ([af2f361](af2f361))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants