Optionally collect spans for path segments
thread segments spans table to save-analysis
WIP make save-analysis use new spans
WIP