Added serialization to request attributes so they can be logged.