...
These are just a few general best practices for configuring Spanning Tree Protocols. It's important to consult the documentation specific to your network equipment and vendor for detailed instructions and additional recommendations.
As an a more specific example, here are the best practicing practices for configuring your spanning tree on Cisco networks:
https://www.ciscopress.com/articles/article.asp?p=2832407&seqNum=6
...