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

Start tracking StripeClient#request usage #1396

Merged
merged 4 commits into from
May 3, 2024

Conversation

anniel-stripe
Copy link
Contributor

The best way I could think of doing this is by setting @usage on the StripeClient instance when request is called and appending it to the existing usage when setting last_request_metrics.

Note that in the tests, we need to send 2 requests, and the second request is the one that has usage telemetry for the first request (since the information is recorded in *last*_request_metrics).

@anniel-stripe anniel-stripe requested review from a team, prathmesh-stripe and helenye-stripe and removed request for a team May 3, 2024 00:18
Copy link
Contributor

@helenye-stripe helenye-stripe left a comment

Choose a reason for hiding this comment

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

This isn't my favorite but if it works and its going away idm really

@anniel-stripe anniel-stripe merged commit a7aadfa into master May 3, 2024
14 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