ot-requestid
v0.0.9
Published
A `RequestId` is a token passed throughout the OpenTable environment to help identify the path that a request takes through various services. The RequestId is a UUID assigned at first entry into the system (generally through the frontdoor) and is passed
Downloads
25
Keywords
Readme
ot-requestid-nodejs
A RequestId
is a token passed throughout the OpenTable environment to help identify
the path that a request takes through various services. The RequestId is a UUID assigned
at first entry into the system (generally through the frontdoor) and is passed onto
every outgoing request.
This library provides a simple interface for manipulating that token.
You may retrieve the active RequestId via requestid.requestId()
.
You can explicitly set the RequestId with requestid.enter(newId, next)
.
requestid.middleware
is Express middleware that sets the id based on semi-standard HTTP headers.