Fastify x-request-id plugin, with this you can trace individual requests to a web service (such as a REST API) from the client to the server and its backends.
npm i fastify-x-request-id
yarn add fastify-x-request-id
Add it to your project with register and you are done!
const Fastify = require("fastify")
const fastify = new Fastify()
fastify.register(require("fastify-x-request-id"))
fastify.listen(3000)This plugin adds X-Request-Id header to every response from fastify request.id.
Licensed under MIT.