hyperlane-plugin-tracing 22.10.0

A lock-free W3C Trace Context (traceparent/tracestate), X-Request-Id, Server-Timing, and pluggable SpanExporter distributed tracing plugin for the Hyperlane framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;

/// Pluggable exporter receiving completed HTTP request spans.
pub trait SpanExporter: Send + Sync + 'static {
    /// Exports a completed [`SpanRecord`] synchronously (implementations should buffer or ship non-blockingly).
    ///
    /// # Arguments
    ///
    /// - `&SpanRecord` - Completed request span details.
    fn export(&self, span: &SpanRecord);
}