ovotech / natchez-extras

Integrations between Natchez, Doobie, HTTP4s, Log4cats and Datadog. Formerly called effect-utils.

Home Page:https://ovotech.github.io/natchez-extras/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

commented

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