mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
11 lines
211 B
JavaScript
11 lines
211 B
JavaScript
'use strict';
|
|
|
|
module.exports = agent => {
|
|
const done = agent.readyCallback('custom-agent-ready')
|
|
const ins = agent.instrument('http', `/hello`);
|
|
setTimeout(() => {
|
|
ins.end();
|
|
done();
|
|
}, 500);
|
|
}
|