-
Couldn't load subscription status.
- Fork 590
Description
Is your feature request related to a problem? Please describe.
This issue has gone the other direction of most, coming out of #1168, where there was discussion about the implementation and the underlying intent/goal.
When instrumenting Stripe through an APM tool (like DataDog), it would be great to have something available within instrumentation event payloads that represents the Stripe "concept" and action being interacted with.
Describe the solution you'd like
As an example, when creating a customer, having object: customer, action: create would be ideal. There is already method, which is the HTTP method, so that might be good enough for the action, however, there really isn't an equivalent for the "concept".
path might sometimes work (POST /customers), but when updating a customer, seeing PATCH /customers/cus_123 as the higher-level interaction does not provide the value within APM as something like customer.update, which groups updates across customers.
Describe alternatives you've considered
No response
Additional context
DataDog's dd-trace-rb gem now has Stripe integration (DataDog/dd-trace-rb#2557), which includes tags for the path and method, but there isn't a great value to use as the resource.
For comparison, instrumenting the AWS SDK results in values like s3.list_buckets, s3.get_object, etc.
I hope this is helpful context!