write out to span for debugging info