pub fn trace_sampled(sample_rate: f64, trace_id: &[u8; 16]) -> boolExpand description
Whether a trace id falls in the sampled fraction, as a free function so the HTTP server span and the LLM client span reach the SAME verdict for one request. Deterministic per trace: folding both 64-bit halves together is the uniform draw, so a trace is sampled consistently wherever it is evaluated and a trace is never half-recorded.