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

Telemetry: command path #236

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Telemetry: command path #236

merged 1 commit into from
Oct 23, 2019

Conversation

ob-stripe
Copy link
Contributor

@ob-stripe ob-stripe commented Oct 14, 2019

Reviewers

r? @tomer-stripe @brandur-stripe
cc @stripe/dev-platform

Summary

Add very basic telemetry: send the command path (e.g. charges create, listen, etc.) in API requests, in a new Stripe-CLI-Telemetry header.

The header contains a JSON string, so we can easily add more information in there.

Users can opt out of telemetry by setting STRIPE_CLI_TELEMETRY_OPTOUT to 1 or true.

Copy link
Collaborator

@tomer-stripe tomer-stripe left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

There's one linter failure but should be quick :D

@ob-stripe
Copy link
Contributor Author

@tomer-stripe Can you take another look? I've changed the way it works to only send the command name, but no arguments or flags.

ptal @tomer-stripe

@ob-stripe ob-stripe assigned tomer-stripe and unassigned ob-stripe Oct 23, 2019
@ob-stripe ob-stripe changed the title Telemetry: command line args Telemetry: command path Oct 23, 2019
@tomer-stripe
Copy link
Collaborator

lgtm!

@ob-stripe ob-stripe merged commit 9afaddb into master Oct 23, 2019
@ob-stripe ob-stripe deleted the ob-telemetry branch October 23, 2019 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants