Shifted where in the lifecycle writeToDiagnosticsTraceField gets set

There was some issues between IIS express and VS web dev server