Heat Traps have been required for hot water tank pipes since 2010 as part of the BCBC, and NBCC.
Below is the Province of BC Letter on the issue. Please consult with your local building inspector for questions.
See our support article on Heat Traps here: https://sunpump.freshdesk.com/solution/articles/6000094817-heat-traps-pipe-and-valve-types