pub fn encode_payload<T: TraceData>(
traces: &[Vec<Span<T>>],
metadata: &TracerMetadata,
) -> Result<Vec<u8>, Error>Expand description
Encode the given traces to the agentless JSON payload (/v1/input body).
Returns the serialized JSON bytes on success.