pub struct FilterSpan {
pub trace_id: TraceId,
pub span_id: SpanId,
pub parent_span_id: SpanId,
pub name: String,
pub kind: SpanKind,
pub start_time: SystemTime,
pub duration: Duration,
pub outcome: SpanOutcome,
pub attributes: Vec<KeyValue>,
pub events: Vec<Event>,
pub sampled: bool,
}Expand description
One filter execution, as a span in the OTel data model. The host builds and emits one of
these per on_request / on_response call; a TelemetrySink receives it.
Fields§
§trace_id: TraceId§span_id: SpanId§parent_span_id: SpanId§name: StringThe filter id (the span name).
kind: SpanKind§start_time: SystemTime§duration: Duration§outcome: SpanOutcome§attributes: Vec<KeyValue>filter.id, plecto.isolation, plecto.outcome, plecto.hook.
events: Vec<Event>The filter’s host-log lines, as span events (this is where dropped logs now land).
sampled: boolThe transaction’s W3C sampled flag. An exporting sink (OTLP, ADR 000040) skips unsampled spans; the in-process tally sinks count them all (metrics are not sampled).
Implementations§
Trait Implementations§
Source§impl Clone for FilterSpan
impl Clone for FilterSpan
Source§fn clone(&self) -> FilterSpan
fn clone(&self) -> FilterSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterSpan
impl Debug for FilterSpan
Source§impl From<&FilterSpan> for SpanRecord
impl From<&FilterSpan> for SpanRecord
Source§fn from(span: &FilterSpan) -> SpanRecord
fn from(span: &FilterSpan) -> SpanRecord
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FilterSpan
impl RefUnwindSafe for FilterSpan
impl Send for FilterSpan
impl Sync for FilterSpan
impl Unpin for FilterSpan
impl UnsafeUnpin for FilterSpan
impl UnwindSafe for FilterSpan
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more