-
Notifications
You must be signed in to change notification settings - Fork 258
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: track project deployments #1508
feat: track project deployments #1508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM! I just left a small nit.
gateway/src/api/latest.rs
Outdated
let account_name = scoped_user.user.claim.sub.clone().to_string(); | ||
|
||
tokio::spawn(async move { | ||
let event = | ||
async_posthog::Event::new("shuttle_api_start_deployment".to_string(), account_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit:
let account_name = scoped_user.user.claim.sub.clone().to_string(); | |
tokio::spawn(async move { | |
let event = | |
async_posthog::Event::new("shuttle_api_start_deployment".to_string(), account_name); | |
let account_name = scoped_user.user.claim.sub.clone(); | |
tokio::spawn(async move { | |
let event = | |
async_posthog::Event::new("shuttle_api_start_deployment", &account_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof, it violated rustfmt (:
Co-authored-by: Oddbjørn Grødem <[email protected]>
…y' of https://github.com/GugaGongadze/shuttle into feature/eng-2122-track-start-deployment-event-in-gateway
* feat: track project deployments * test: test * Update gateway/src/api/latest.rs Co-authored-by: Oddbjørn Grødem <[email protected]> * fix: formatting --------- Co-authored-by: Oddbjørn Grødem <[email protected]>
Description of change
Moving tracking functionality in gateway, as opposed to doing it in deployer: #1485
How has this been tested? (if applicable)
shuttle_api_start_deployment
was ingested by PostHog client.