[−][src]Trait tracing_subscriber::registry::LookupSpan
Provides access to stored span data.
Subscribers which store span data and associate it with span IDs should
implement this trait; if they do, any Layer
s wrapping them can look up
metadata via the Context
type's span()
method.
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn span(&'a self, id: &Id) -> Option<SpanRef<Self>> where
Self: Sized,
Self: Sized,
Returns a SpanRef
for the span with the given Id
, if it exists.
A SpanRef
is similar to SpanData
, but it allows performing
additional lookups against the registryr that stores the wrapped data.
In general, users of the LookupSpan
trait should use this method
rather than the span_data
method; while implementors of this trait
should only implement span_data
.
Implementors
impl<'a> LookupSpan<'a> for Registry
[src]
impl<'a, L, S> LookupSpan<'a> for Layered<L, S> where
S: Subscriber + LookupSpan<'a>,
[src]
S: Subscriber + LookupSpan<'a>,