Commit ba963e4b authored by 赵培然's avatar 赵培然 🚴🏻
Browse files

can off

No related merge requests found
'use strict';
const apmConfig = require('../../config/apmConfig.json');
const apm = require('elastic-apm-node').start(apmConfig);
if (apmConfig.serverUrl) {
const apm = require('elastic-apm-node').start(apmConfig);
apm.addPatch('egg', require.resolve('./instrumentation/egg'));
apm.addPatch('@eggjs/router', require.resolve('./instrumentation/egg-router'));
apm.addPatch('egg', require.resolve('./instrumentation/egg'));
apm.addPatch(
'@eggjs/router',
require.resolve('./instrumentation/egg-router')
);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment