We are running tapir with caliban, which acts very well together. But graphql is served on one path and that makes path logging useless for us, while there is a notion of operation name in graphql, which we want to log instead. Plus we have a user id which is authenticated in request interceptor, which we put in request attributes. Now we want to log some request’s attrs in server logs, to get smth like this:
2022-12-23T09:10:09.097413674Z DEBUG [ZScheduler-0] s.t.s.http4s.Http4sDefaultServerLog - Request: POST /api/graphql, handled by: POST *, took: 14085ms; response: 200; operation name: weatherForecast; user: x123456