Closed btkostner closed 2 years ago
Worth noting that this will require Phoenix 1.5.0 or greater
Hello @btkostner, I believe we already are writing conn.request_path
both in GKE and DataDog formatter, can you please share a use case when it's not enough?
This will have the params in the url. /products/1234
is what we currently have and /products/:id
is what this adds. At least for Datadog, the APM includes it and it's much easier to query by.
@btkostner can we keep this change to DataDog only? For Google Cloud, we already have a full request path. Other than that thank you and LGTM.
Sounds good. PR updated!
This adds the phoenix route to plug metadata, so you will be able to get
/resource/:id
as well as the regular url like/resources/1234
. It depends onPhoenix.Router
code, so I can't add tests, but I did test locally.