Table trace = new Table("trace", "Traces for " + getType(req));
trace.addSortableColumn("Start", new ShowTraceLinkType(), "Start Time");
trace.addSortableColumn("ms", new DurationType(), "Span time");
trace.addUnsortableColumn("Source", new StringType<String>(), "Service and location");
for (Entry<Key,Value> entry : scanner) {
RemoteSpan span = TraceFormatter.getRemoteSpan(entry);
if (span.description.equals(type)) {
trace.addRow(span, new Long(span.stop - span.start), span.svc + ":" + span.sender);
}
}
trace.generate(req, sb);