Create trace listener in the constructor