Skip to main content

serialise_spans

Function serialise_spans 

Source
pub fn serialise_spans(spans: &[SpanRecord], service_name: &str) -> String
Available on crate feature tracing only.
Expand description

Serialise closed spans into one OTLP/HTTP JSON ExportTraceServiceRequest, under a resource whose service.name is service_name.