-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
airbyte-ci: Add basic segment tracking #31354
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
760a05a
to
673e1cf
Compare
|
||
import segment.analytics as analytics | ||
|
||
analytics.write_key = "G6G7whgro81g9xM00kN2buclGKvcOjFd" |
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.
We cool checking this in?
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.
I imagine so. We already have checked in the write key for octavia cli. I dont see the difference here.
Also not too disimilar to how sentry/segment FE libraries work
top_level_command = ctx.command_path | ||
full_cmd = " ".join(sys.argv) | ||
|
||
sys_user_name = getpass.getuser() |
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.
Any PII worries here? I guess this is an internal tool for now
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.
Good callout. @evantahler Ill go ahead and hash their machine info
def _is_airbyte_user(): | ||
return os.getenv("AIRBYTE_ROLE") == "airbyter" |
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.
Nice.
Co-authored-by: bnchrch <[email protected]>
Problem
We dont know what amount of usage
airbyte-ci
is receivingSolution
Add basic segment tracking
closes #31255