Integrate posthog and log events to track usage (#17)

This commit is contained in:
Kerem Yilmaz
2024-03-04 15:24:18 -08:00
committed by GitHub
parent 7322eac7b9
commit 879bc616d3
9 changed files with 112 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/bash
# Call function to send telemetry event
log_event() {
if [ -n $1 ]; then
python scripts/tracking.py $1
fi
}
# Function to check if a command exists
command_exists() {
command -v "$1" &> /dev/null
@@ -35,6 +42,7 @@ activate_poetry_env() {
}
install_dependencies_after_poetry_env() {
echo "Installing playwright dependencies..."
playwright install
}
@@ -100,6 +108,7 @@ main() {
install_dependencies_after_poetry_env
run_alembic_upgrade
create_organization
log_event "skyvern-oss-setup-complete"
echo "Setup completed successfully."
}