Open Eric-Fontana-Bose opened 6 years ago
Yeah path is ultra weak, this is why our default rails middleware tries to send action and controller name per:
Do you have a access to action/controller name in env
in Sinatra?
Also I search our codebase and can not see where we are reporting path..
yes, I have access to them, not sure what to do about it though?
ideally, this is what I want:
https://stackoverflow.com/questions/40978705/get-sinatra-request-route-path
A PR to improve our middleware is the way to go:
route = nil
if params
action = params["action"]
controller = params["controller"]
else
route = env["sinatra.route"]
end
I'm using puma with sinatra and puma clustered mode. I added a
And I am seeing
However, I don't want my metrics to record every product number, I want it to record it like:
Is this possible? How do I modify the path
The
client_ruby
library which I switched away from has a way to do this.