After this change `synapse.logging` is fully typed.
Functions that are decorated with `trace` are now properly typed and the type hints for them are fixed.