`self.sess.span_bug` may give a better error message