pub fn to_vec_with_capacity<T: TraceData, S: AsRef<[Span<T>]>>( traces: &[S], capacity: u32, metadata: &TracerMetadata, ) -> Vec<u8> ⓘ
Serializes traces into a Vec<u8> with a pre-allocated capacity.
Vec<u8>