LukeMathWalker/tracing-actix-web

Filter out actix state

0xpr03 opened this issue · 2 comments

Currently when I have any kind of wrapped middleware or state it has to implement debug. Problem is that when you have some kind of secret (cookie key..) that you don't want to have logged, your only option is to implement Debug and simply not return anything.

tracing-actix-web does not enforce any constraint on the state, in particular not Debug.
I'll close this for now - happy to look at it again if you provide a code sample showing the problem.

Note: I was utilizing the #[instrument] macro from tracing to get function spans. The fix is to use the skip fields option So yeah, not really related to this library. It was just my first interaction with using the tracing things.