express-perf
v1.11.3
Published
`express-perf` is small middleware that records performance timings and status codes from your app and sends it to Perf. We then run analytics on that data to generate metrics and alerts.
Downloads
6
Readme
express-perf
express-perf
is small middleware that records performance timings and status codes from your app and sends it to Perf.
We then run analytics on that data to generate metrics and alerts.
Right now perf is in private beta but if you're interested in an API key, feel free to email us at [email protected]
Usage
Install
express-perf
using npmnpm install express-perf --save
In your Express application, include
express-perf
as a middlewarevar express = require('express') var perf = require('express-perf') // include this as the first middleware that you load, right // before you instantiate your real routes app.use(perf(express, { apiKey: 'PERF_API_KEY' }))
require('express')
is just an example, you probably have already included this- Make sure to replace
PERF_API_KEY
with the key given to you