ot-requestid

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

Usage no npm install needed!

<script type="module">
  import otRequestid from 'https://cdn.skypack.dev/ot-requestid';
</script>

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.