#vmehtawhq_api

1 messages ¡ Page 1 of 1 (latest)

lavish valeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326826792245268481

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

slim hornet
#

How can we identify if a sub path is an id of some object?

delicate cove
#

How are you going to track the metrics? Are you going to search in the Dashboard?

slim hornet
#

We publish our own metrics to hosted prometheus server and use grafana

delicate cove
#

If the metrics in your own server, we have no context on how your system works and how to skip the path parameters

#

We are only able to advise the tooling developed by Stripe, e.g. the Dashboard

#

One possible way I can think of is to do a regex check and replace with your own placeholder

slim hornet
#

Is there a way to identify if a sub path is an id or not?
Yeah a regex to identify if a string is id?

delicate cove
#

Stripe's ID is in the format of "a prefix + _ + random string", e.g. pi_3QfGvIKNlCBLQsEh1e1NAk3k

#

Your system can check the regular expression against this format between the slashes of a request path

slim hornet
#

/external_accounts could also fall under same regex?

delicate cove
#

Yup! Bank external account is in the format of ba_xxx, e.g. ba_1NAiJy2eZvKYlo2CvChQKz5k

slim hornet
#

no, I meant "external_account" is of the same format as prefix + _ + some string

#

maybe I could use something like a string contains Capital case alphabet, lower case alphabet, digit = id

#

any of these 2

delicate cove
#

I don't get your question. Could you give an example request ID (req_xxx), so that I can understand better?

In any case, all the ID formats in the request paths follow the same. If you would like to replace the actual value of the IDs in the request path, it should be safe to use the same format

slim hornet
#

Yeah I kind of understood what I need to do. Thanks