Trait tracing_distributed::Telemetry [−][src]
pub trait Telemetry {
type Visitor: Visit;
type TraceId: Send + Sync + Clone;
type SpanId: Send + Sync + Clone;
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.
Associated Types
Required methods
fn 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
Report a Span
to this Telemetry instance’s backend.