Currently the thread::ThreadId can only be debug rendered. That's not entirely great because it renders with the ThreadId() thing around. Right now to report the thread ID to sentry we transmute it so we can get the inner u64 out.
Would it be reasonable to have a Display implementation to get a nice string version of the integer in it? There is a bit of precedent for this in Rust: StatusCode in std::process can be displayed and so can be process IDs (which are just u32s).
Currently the
thread::ThreadIdcan only be debug rendered. That's not entirely great because it renders with theThreadId()thing around. Right now to report the thread ID to sentry we transmute it so we can get the inner u64 out.Would it be reasonable to have a
Displayimplementation to get a nice string version of the integer in it? There is a bit of precedent for this in Rust:StatusCodeinstd::processcan be displayed and so can be process IDs (which are just u32s).