Cook spaghetti according to package instructions.
In a large frying pan, cook bacon until crisp. Remove with slotted spoon and set aside.
Saute onion, garlic and basil or sage in the bacon grease over medium heat until onion is soft. Be careful not to burn the garlic.
Strain spaghetti and return to pot immediately. Make sure it's HOT!
Pour onion, garlic, basil/sage and eggs over hot pasta and stir to cook the egg.
Stir in bacon and Parmesan cheese.
Serve immediately.