Skip to main content

Span

Trait Span 

Source
pub trait Span<'a> {
    // Required methods
    fn resource_normalized(&'a self) -> &'a str;
    fn get_meta(&'a self, key: &str) -> Option<&'a str>;
}
Expand description

Minimal span interface required by TraceFilterer.

Required Methods§

Source

fn resource_normalized(&'a self) -> &'a str

Returns the normalized resource value

Source

fn get_meta(&'a self, key: &str) -> Option<&'a str>

Returns the value of the given meta tag, if present.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, T: TraceData> Span<'a> for libdd_trace_utils::span::v04::Span<T>

Source§

impl<'a, T: TraceData> Span<'a> for libdd_trace_utils::span::v1::Span<T>