pub fn compute_top_level_span<T>(trace: &mut [Span<T>])where
T: TraceData,Expand description
Updates all the spans top-level attribute. A span is considered top-level if:
- it’s a root span
- OR its parent is unknown (other part of the code, distributed trace)
- OR its parent belongs to another service (in that case it’s a “local root” being the highest ancestor of other spans belonging to this service and attached to it).