fastify-x-request-id
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

fastify-x-request-id

js-standard-style Build Status

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.

Install

NPM

npm i fastify-x-request-id

Yarn

yarn add fastify-x-request-id

Usage

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)

Reference

This plugin adds X-Request-Id header to every response from fastify request.id.

License

Licensed under MIT.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    34
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    34
  • 1.2.0
    1
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i fastify-x-request-id

Weekly Downloads

35

Version

2.0.0

License

MIT

Unpacked Size

8.26 kB

Total Files

8

Last publish

Collaborators

  • dimonnwc3