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

airbyte-ci: Add basic segment tracking #31354

Merged
merged 8 commits into from
Oct 17, 2023
Merged

Conversation

bnchrch
Copy link
Contributor

@bnchrch bnchrch commented Oct 12, 2023

Problem

We dont know what amount of usage airbyte-ci is receiving

Solution

Add basic segment tracking
closes #31255

@bnchrch bnchrch requested review from alafanechere and a team October 12, 2023 18:07
@vercel
Copy link

vercel bot commented Oct 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2023 0:38am

@bnchrch bnchrch force-pushed the bnchrch/airbyte-ci/add-segment branch from 760a05a to 673e1cf Compare October 14, 2023 00:24

import segment.analytics as analytics

analytics.write_key = "G6G7whgro81g9xM00kN2buclGKvcOjFd"
Copy link
Contributor

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?

Copy link
Contributor Author

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()
Copy link
Contributor

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

Copy link
Contributor Author

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

Comment on lines 12 to 13
def _is_airbyte_user():
return os.getenv("AIRBYTE_ROLE") == "airbyter"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice.

@bnchrch bnchrch enabled auto-merge (squash) October 17, 2023 00:38
@bnchrch bnchrch disabled auto-merge October 17, 2023 00:39
@bnchrch bnchrch merged commit ba48460 into master Oct 17, 2023
@bnchrch bnchrch deleted the bnchrch/airbyte-ci/add-segment branch October 17, 2023 01:17
ariesgun pushed a commit to ariesgun/airbyte that referenced this pull request Oct 23, 2023
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.

📊 Add segment integration and dashboard to track airbyte-ci usage locally
2 participants