tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.52k stars 725 forks source link

Implement Value for Cow<T> where T: Value #3146

Open loewenheim opened 2 days ago

loewenheim commented 2 days ago

This implements Value for Cow<'a, T> where T: Value.

Motivation

This is one part of https://github.com/tokio-rs/tracing/issues/726. I also recently ran into this personally when trying to record a field of type Option<Cow<str>>.