mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
This branch modifies the `tokio_trace::Span` API functions that take span IDs (the `Span::child_of` constructor, and the `Span::follows_from` method) so that more types bearing a span ID can be passed as an argument. Span IDs may now be passed directly without requiring them to be passed as `Some(id)`. This should make the API slightly more ergonomic. Also, it changes the `Span::field` method to take an `AsField` rather than a `Borrow<str>`. Signed-off-by: Eliza Weisman <[email protected]>