Make getSpansByTraceIds() more clear