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

Report usage of stripe_client #1721

Merged
merged 19 commits into from
Jan 17, 2024
Merged

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jan 15, 2024

Changelog

  • Reports use of the new StripeClient in X-Stripe-Client-Telemetry. (You can disable telemetry via Stripe.enableTelemetry = false;, see the README.)

Details

  • A different approach to Report usage of StripeClient #1698. This one sets usage on each callsite to StripeResponseGetter.request from StripeClient, rather than attempting to wrap LiveStripeResponseGetter.
  • Modifies RequestTelemetry to accept usage and set it appropriately on X-Stripe-Client-Telemetry. Had to add a parameter to a public method, so I made a new overload and deprecated the old one. Had to disable a linter rule to do this.

@richardm-stripe richardm-stripe force-pushed the richardm-stripe-client-usage branch 4 times, most recently from fca564f to 3e9518d Compare January 16, 2024 16:06
build.gradle Outdated Show resolved Hide resolved
@richardm-stripe richardm-stripe requested review from a team and helenye-stripe and removed request for a team January 16, 2024 16:14
Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

Choose a reason for hiding this comment

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

Few Qs

@richardm-stripe richardm-stripe force-pushed the richardm-stripe-client-usage branch from f4fef22 to f28076b Compare January 16, 2024 20:14
Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

Choose a reason for hiding this comment

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

Can we now remove the usage from the StripeRequest?

@richardm-stripe richardm-stripe merged commit 8052cc8 into master Jan 17, 2024
11 checks passed
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.

2 participants