Use case is; on controller error handler (definition, usage) we want to log which endpoint is failed. One easy way to do that is to log the request path, but most of the paths we use have dynamic values (id, tag etc.). Therefore when we log the request path, we are having trouble when aggregating the log output for monitoring purposes. So instead of request path what we need is the route that is matched.
val pathPattern = finatraController.route.findRouteAndMatch(request, request.getMethod).get._2.toString
Unfortunately PathPattern is not user friendly and doesn’t look good on graphs(eg
PS. this is a pain point for me, would be happy if you can either merge/release or suggest an alternative.
I know! It came in right after we had submitted to maven central. It'll go
On Wed, Apr 16, 2014 at 10:14 AM, Bora Tunca email@example.com: