[][src]Trait tracing_distributed::Telemetry

pub trait Telemetry {
    type Visitor: Default + Visit;
    type TraceId: Send + Sync + Clone;
    type SpanId: Send + Sync + Clone;
    fn report_span(
        &self,
        span: Span<Self::Visitor, Self::SpanId, Self::TraceId>
    );
fn report_event(
        &self,
        event: Event<Self::Visitor, Self::SpanId, Self::TraceId>
    ); }

This trait represents the ability to publish events and spans to some arbitrary backend.

Associated Types

type Visitor: Default + Visit

Type used to record tracing fields.

type TraceId: Send + Sync + Clone

Globally unique identifier, uniquely identifies a trace.

type SpanId: Send + Sync + Clone

Identifies spans within a trace.

Loading content...

Required methods

fn report_span(&self, span: Span<Self::Visitor, Self::SpanId, Self::TraceId>)

Report a Span to this Telemetry instance's backend.

fn report_event(&self, event: Event<Self::Visitor, Self::SpanId, Self::TraceId>)

Report an Event to this Telemetry instance's backend.

Loading content...

Implementors

impl<SpanId, TraceId> Telemetry for BlackholeTelemetry<SpanId, TraceId> where
    SpanId: 'static + Clone + Send + Sync,
    TraceId: 'static + Clone + Send + Sync
[src]

type Visitor = BlackholeVisitor

type TraceId = TraceId

type SpanId = SpanId

Loading content...