Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    collector: Arc<SpanCollector>,
    config: SpanExportConfig,
    cancel: CancellationToken,
) -> Option<JoinHandle<()>>
Expand description

Spawn the span exporter on a dedicated thread with its own single-threaded tokio runtime, matching the original design that avoids contending with the application’s async runtime.