Simple Express/Connect middleware for StatsD route monitoring that sends status codes and response times per route. Version 1.0.2 is the latest stable release (last updated in 2018). Key differentiators: lightweight, fork of uber/express-statsd with support for tags and per-route keys via req.statsdKey and req.statsdTags. Works with plain HTTP servers, not just Express. Release cadence: sporadic, no updates since initial release.
npm install express-hot-shotsVerified import paths — ran on the pinned version, not inferred.
Shows how to set up express-hot-shots with Express, configure StatsD host/port, and use per-route keys via req.statsdKey.
Always set req.statsdKey before the response is sent, e.g., in a per-route middleware.
Run: npm install hot-shots
Consider using alternatives like 'express-statsd' or direct integration with 'hot-shots'.
Set req.statsdKey in a middleware that runs before any other middleware that sends the response.
Install hot-shots: npm install hot-shots
Call the default export: statsdMiddleware(options) or import as default: import statsdMiddleware from 'express-hot-shots'
Set req.statsdKey in a middleware before the route handler, e.g., req.statsdKey = 'http.get.home';