pub trait Telemetry {
type Visitor: Visit;
type TraceId: Send + Sync + Clone;
type SpanId: Send + Sync + Clone;
// Required methods
fn mk_visitor(&self) -> Self::Visitor;
fn report_span(
&self,
span: Span<Self::Visitor, Self::SpanId, Self::TraceId>,
);
fn report_event(
&self,
event: Event<Self::Visitor, Self::SpanId, Self::TraceId>,
);
}
Expand description
Represents the ability to publish events and spans to some arbitrary backend.
Required Associated Types§
Required Methods§
Sourcefn mk_visitor(&self) -> Self::Visitor
fn mk_visitor(&self) -> Self::Visitor
Initialize a visitor, used to record values from spans and events as they are observed