protected static Span findRootOrServerSpan ( String tenantId , Span span , SpanCache spanCache ) { while ( span != null && ! span . serverSpan ( ) && ! span . topLevelSpan ( ) ) { span = spanCache . get ( tenantId , span . getParentId ( ) ) ; } return span ; }
This method identifies the root or enclosing server span that contains the supplied client span .