Transform Span{} to queryport command payload.