Pat the tenderloin dry, season all over with the salt and pepper, and sear in the olive oil in a hot skillet for 2 minutes per side until a deep brown crust forms on every surface.
Remove the beef, brush it all over with the Dijon mustard, and let it cool completely, about 10 minutes; this stops the pastry from steaming once it is wrapped.
In the same skillet, cook the mushrooms, shallot, garlic, and butter over medium heat for 8 to 10 minutes, stirring often, until the mixture goes from wet to a thick paste that holds its shape when pushed with a spoon. Stir in the thyme and let cool.
Lay plastic wrap on the counter and arrange the prosciutto slices overlapping into a rectangle. Spread the cooled mushroom mixture evenly over the prosciutto.
Place the mustard-coated beef at one edge and use the plastic wrap to roll the prosciutto and mushrooms tightly around it into a log. Twist the ends and chill 15 minutes to set the shape.
Roll the puff pastry on a floured surface into a rectangle large enough to wrap the beef. Unwrap the log, set it on the pastry, brush the pastry edges with egg wash, and roll and seal the seams, trimming excess dough.
Set the wrapped beef seam-side down on a parchment-lined baking sheet, brush the top all over with egg wash, score a few shallow lines with a knife tip, and chill 15 minutes.
Preheat the oven to 425°F and bake 20 to 25 minutes, until the pastry is deep golden and an instant-read thermometer in the center reads 125°F for medium-rare.
Rest 10 minutes before slicing into thick rounds with a serrated knife, which keeps the pastry layers from crushing.
Good to Know
Build the beef log up through the chilling step a day ahead, wrap it tightly, and keep it in the fridge; roll it in pastry and bake only when you're ready to eat.