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

Stripe: do not include path ids in metric names #2716

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Stripe: do not include path ids in metric names #2716

merged 3 commits into from
Jun 14, 2024

Conversation

fallwith
Copy link
Contributor

When naming Stripe metrics, include only the first two (API version and category) portions of the path and not the id. Continue to start the metric name with "Stripe" and end it with the method (ex: "get"). This will prevent metric name exhaustion resulting from regular Stripe usage.

Given a 'get' request performed against a path of
'/v1/payment_methods/pm_8675309', the metric name will now be 'Stripe/v1/payment_methods/get'.

resolves #2654
resolves #2709

When naming Stripe metrics, include only the first two (API version and
category) portions of the path and not the id. Continue to start the
metric name with "Stripe" and end it with the method (ex: "get"). This
will prevent metric name exhaustion resulting from regular Stripe usage.

Given a 'get' request performed against a path of
'/v1/payment_methods/pm_8675309', the metric name will now be
'Stripe/v1/payment_methods/get'.

resolves #2654
resolves #2709
Copy link
Contributor

@tannalynn tannalynn left a comment

Choose a reason for hiding this comment

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

Looks great to me, only thing is to add the changelog entry!

Copy link
Contributor

@hannahramadan hannahramadan left a comment

Choose a reason for hiding this comment

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

Nice explanation in the comment!

Copy link

SimpleCov Report

Coverage Threshold
Line 93.73% 93%
Branch 70.86% 50%

@fallwith fallwith merged commit eb64fbf into dev Jun 14, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Stripe integration Causes Cardinality Explosion Stripe metrics include ids in the group names
3 participants