Webflux request/response logging

3.8k Views Asked by At

I believe it is a standard to log request and response in order to track down any issues reported by users and also to integrate it with tools like Splunk.

I've found 2 approaches so far, but none of them is really solving this issue properly:

  1. https://stackoverflow.com/a/64217998/4950459
  2. https://stackoverflow.com/a/47931511/4950459

Someone even wrote it is against reactive stack: https://stackoverflow.com/a/45280764/4950459

So I have questions:

  1. Isn't there any recommended way of doing it by Spring team?
  2. If logging in webflux is against reactive stack then how should we actually log request/response?
  3. If Webflux is not a proper place to log request/response then where should we catch those information from? Nginx could possibly log it with a request id - but is it a proper way of solving this issue?
0

There are 0 best solutions below