Closed
Description
For the short term, I wanted to make myself a wrapper for anyhow::Error
, to use the unstable support in tracing
and log the values as structured.
What happened is that my manual implementation - although seemingly correct, fails to serialize. A different implementation, which stringifies early and uses#[derive(Valuable)]
works just fine.
Because the code is a bit bigger than fits into an issue, I have created a reproduction in a separate repository, with both versions.
cc @hawkw