added logs to trace id assignment