Trait tracing_distributed::Telemetry [−][src]
Represents the ability to publish events and spans to some arbitrary backend.
Associated Types
type Visitor: Visit
[src]
Type used to record tracing fields.
type TraceId: Send + Sync + Clone
[src]
Globally unique identifier, uniquely identifies a trace.
type SpanId: Send + Sync + Clone
[src]
Identifies spans within a trace.
Required methods
fn mk_visitor(&self) -> Self::Visitor
[src]
Initialize a visitor, used to record values from spans and events as they are observed
fn report_span(&self, span: Span<Self::Visitor, Self::SpanId, Self::TraceId>)
[src]
Report a Span
to this Telemetry instance’s backend.
fn report_event(&self, event: Event<Self::Visitor, Self::SpanId, Self::TraceId>)
[src]
Report an Event
to this Telemetry instance’s backend.
Implementors
impl<SpanId, TraceId> Telemetry for BlackholeTelemetry<SpanId, TraceId> where
SpanId: 'static + Clone + Send + Sync,
TraceId: 'static + Clone + Send + Sync,
[src]
SpanId: 'static + Clone + Send + Sync,
TraceId: 'static + Clone + Send + Sync,