node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



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.