UNPKG

@watchlog/apm-node

Version:

A lightweight APM (Application Performance Monitoring) middleware for Node.js to monitor request durations, error traces, and memory usage — designed to integrate with Watchlog Agent.

10 lines (8 loc) 186 B
function errorMiddleware(options = {}) { return function (err, req, res, next) { if (typeof next === 'function') { next(err); } }; } module.exports = errorMiddleware;