Add azure diagnostics trace listener to API