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

Type used to record tracing fields.

Globally unique identifier, uniquely identifies a trace.

Identifies spans within a trace.

Required methods

Initialize a visitor, used to record values from spans and events as they are observed

Report a Span to this Telemetry instance’s backend.

Report an Event to this Telemetry instance’s backend.

Implementors