title: How to log a http request header (X-Trace-Id) in Postman
body: <p>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. </p>
  
  <p>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.</p>
  
  <pre><code> console.log("header : " + request.headers["X-Trace-Id"]);
  </code></pre>
  
  <p>I tried above logging, however, I got this in the console "header : undefined"</p>