koa-request-id
Add a request id as this.id
, if set reusing one from the querystring or
headers.
Example
var koa = ;var requestId = ; var app = ;app;app; app;
Query it:
$ curl http://localhost:300023691882-abd8-4857-88f3-41a7f962aefd $ curl http://localhost:3000/?request-id=13371337 $ curl -H "Request-id: 1337" http://localhost:30001337
Installation
$ npm install koa-request-id
License
MIT