I am trying to add logging to my requests (I have over 150 requests). I am doing this by adding Trace-Id in headers for the requests. This is what I am doing at the moment.
I have added a new header called "X-Trace-Id" and the value for this header is "test {{$guid}}" - which generates this output "test 4b048ed5-3c6f-4f7f-880e-39218cca2e74". I would like to log this value after each request run.
console.log("header : " + request.headers["X-Trace-Id"]);
I tried above logging, however, I got this in the console "header : undefined"