TraceMiddleware HttpRoutes support
user753 opened this issue · comments
I would be great if TraceMiddleware could work with Http
instead of HttpApp
, so it could be used with HttpRoutes
.
We just submitted a PR for supporting HttpRoutes:
#59
Looks like this issue is addressed:
#59 (comment)
Hi, sorry I didn't respond to this earlier - indeed hopefully my comment on #59 explains why we have to trace HttpApp
- I've added a tiny bit of syntax & updated the docs to include a guide for tracing only some routes (which I think is the main reason to want to trace HttpRoutes
) https://ovotech.github.io/natchez-extras/docs/natchez-http4s.html#tracing-only-some-routes