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: Add posthog telemetry integration #37

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

jpmcb
Copy link
Member

@jpmcb jpmcb commented Aug 28, 2023

Description

Integrate Posthog telemetry with the CLI. Now, events for current commands are captured using the PosthogCliClient type struct.

Within Posthog, these events are being captured:

Screenshot 2023-08-28 at 2 55 09 PM

This also updates the build to include a dynamic build-time secret (which isn't really secret, it's the public write only key to the posthog CLI project) that gets injected from github secrets.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Closes #7

Mobile & Desktop Screenshots/Recordings

N/a

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 docs.opensauced.pizza
  • 🍕 dev.to/opensauced
  • 📕 storybook
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Nope: just need to see this go through the pipelines and will test released binaries

[optional] What gif best describes this PR or how it makes you feel?

Signed-off-by: John McBride <john@opensauced.pizza>
Copy link
Member

@bdougie bdougie left a comment

Choose a reason for hiding this comment

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

This is amazing. I look forward to the insight we get from and appreciate posthog's data use and anonymous data practices.

Copy link
Contributor

@brandonroberts brandonroberts 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 9829f49 into open-sauced:beta Aug 29, 2023
@jpmcb jpmcb deleted the posthog-telem branch August 29, 2023 15:03
github-actions bot pushed a commit that referenced this pull request Aug 29, 2023
## [1.0.0-beta.2](v1.0.0-beta.1...v1.0.0-beta.2) (2023-08-29)

### 🍕 Features

* Add posthog telemetry integration ([#37](#37)) ([9829f49](9829f49))
open-sauced bot pushed a commit that referenced this pull request Oct 11, 2023
## 1.0.0 (2023-10-11)

### 🤖 Build System

* sematic bin release, npm ([7b4607e](7b4607e))

### 🔁 Continuous Integration

* Update @open-sauced/release@2.2.1 and compliance.yaml ([#33](#33)) ([146b6b7](146b6b7))

### 🐛 Bug Fixes

* Uses correct generated token when checking out cli repo in release ([#44](#44)) ([1e0c9f1](1e0c9f1))

### 🍕 Features

* Add install instructions and script for pizza CLI ([#26](#26)) ([421a429](421a429))
* Add posthog telemetry integration ([#37](#37)) ([9829f49](9829f49))
* cli auth ([#21](#21)) ([34728fb](34728fb))
* GitHub action to build and upload Go artifacts after release created ([#22](#22)) ([ad187a9](ad187a9))
* Http Client for accessing OpenSauced API client ([#23](#23)) ([ec2b357](ec2b357))
* Leverage the GITHUB_APP_TOKEN for releases ([#32](#32)) ([e0a25e0](e0a25e0))
* npm i -g pizza ([73291d1](73291d1))
* Pizza show ([#24](#24)) ([72f21ce](72f21ce))
* provide repository contributors insights ([#30](#30)) ([d16091f](d16091f))
* provide repository insights ([#38](#38)) ([dc148d6](dc148d6))
* repo-query support ([199cfd7](199cfd7))
* update bin name release.yaml ([6b21cb8](6b21cb8))
* Version command for CLI based on release builds ([#36](#36)) ([9f3eedc](9f3eedc))
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.

Feature: add telemetry
3 participants