UNPKG

apminsight

Version:

monitor nodejs applications

36 lines (30 loc) 737 B
// Supported from v16.8.3 till 20.2.2 var serverWrapper = require("../core-modules"); var moduleName = "KOA"; var middleWare = "Middleware"; var moduleInfo = { functions: [ { functionName: "prototype.callback", component: moduleName }, { functionName: "prototype.createContext", component: moduleName }, { functionName: "prototype.use", component: middleWare, wrapper: wrapServer } ] }; function wrapServer(actual) { var serverObj = serverWrapper.serverWrap( actual, moduleInfo, "Koa - Middleware - use" ); return serverObj; } module.exports = moduleInfo;