pub enum Target {
Field(String),
Attr(String),
}Expand description
What a term filters on.
Variants§
Field(String)
A column of the signal’s root table, by name.
Attr(String)
An attribute key, looked up at every level the signal has — record, resource, scope, and on traces the span’s own events and links — and unioned.
Whether service.name is a resource attribute is a detail of whoever
configured the SDK, and users do not know it. Searching all of them is
what every usable tracing UI does; the star schema makes it a handful of
scans of tables that are tiny next to the root.
The child levels are not a nicety. Span.recordException — the one API
call behind most of the spans anyone goes looking for — writes
exception.type to a span event, so leaving events out made the
commonest question in a tracing UI return an empty list while the value
was visible in events[].attributes of the very same response. A match
on a child selects the span it hangs off, which is the row the caller
asked for.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].