pub fn task_span( task_id: Uuid, job_id: Uuid, capability: &str, domain_id: Uuid, ) -> Span
Create a span for a task with common fields as per the spec.