Postman API Platform | Video Tutorial 1 | Generating a Trace Id using Postman

Аватар автора
JavaScript Ninja
We can generate a trace-id using postman which will be sent as a custom header in the request. That header can be used as a Trace Id for debugging/distributed tracing in a system. A lot of people are asking how to see the value of the "Postman-Token" for a particular hit. You can write this line of code in the "Tests" tab in the postman request window and the header value would be printed in the Postman "Console". console.log(pm.request.getHeaders());

0/0


0/0

0/0

0/0