Cut the shallots and in tiny dice.
Heat a pan on low/medium heat with 2 tbsp of olive oil.
When it's warm add the diced shallots, carrot and the rosemary sprig.
Cook for 10 mn, meanwhile cut the mushrooms.
Then add them to the pan, sprinkle some salt. Put the heat to medium and cook for 10 mn stirring time to time.
When the mushrooms have a nice color, deglaze with white wine, cook for 5 mn and then, add the tomato sauce. Cook uncover on low heat for 30 to 40mn. The sauce should reduce and become thick.