Trait tracing_subscriber::registry::SpanData  
source · [−]pub trait SpanData<'a> {
    fn id(&self) -> Id;
    fn metadata(&self) -> &'static Metadata<'static>;
    fn parent(&self) -> Option<&Id>;
    fn extensions(&self) -> Extensions<'_>;
    fn extensions_mut(&self) -> ExtensionsMut<'_>;
}Expand description
A stored representation of data associated with a span.
Required Methods
fn extensions(&self) -> Extensions<'_>
fn extensions(&self) -> Extensions<'_>
Returns a reference to this span’s Extensions.
The extensions may be used by Layers to store additional data
describing the span.
fn extensions_mut(&self) -> ExtensionsMut<'_>
fn extensions_mut(&self) -> ExtensionsMut<'_>
Returns a mutable reference to this span’s Extensions.
The extensions may be used by Layers to store additional data
describing the span.
