Using valuable with instrument macro #3370
Answered
by
hds
enricoschaaf
asked this question in
Q&A
-
|
Hi 👋🏽 Is there a way to use the valuable trait together with the instrument macro? So instead of using debug for inputs use Valuable, instead of Display for errors use Valuable? |
Beta Was this translation helpful? Give feedback.
Answered by
hds
Nov 19, 2025
Replies: 1 comment
-
|
Yes. You need to enable the unstable |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. You need to enable the unstable
valuablefeature as described here: https://docs.rs/tracing/latest/tracing/#unstable-features