beyla icon indicating copy to clipboard operation
beyla copied to clipboard

Pull Variable from route

Open David-aylward opened this issue 1 year ago • 1 comments
trafficstars

Hi, I have a http_route ie /cowname?name=suzan&breed=cowweee is it possible to extract the values after the "?"

David-aylward avatar Nov 27 '23 08:11 David-aylward

I'm going to look into this tomorrow, we have the full path, but I think our regex matching can't do this yet. We have another issue opened for part of an URL pattern matching.

grcevski avatar Nov 29 '23 03:11 grcevski

This can lead to cardinality explosion if using metrics. It could also lead to leak sensitive data if not used properly. We use in some places url.full resource attribute with includes query part, but at the same time, we use removeQuery when we capture urls, to remove query params.

I guess that something we don't want to do for now. I'm closing the issue. We can always revisit the issue if there's more interested in capturing this data.

marctc avatar Aug 23 '24 15:08 marctc