perf: 支持aws route53 dns

This commit is contained in:
xiaojunnuo
2025-12-25 18:56:27 +08:00
parent 0e467a6024
commit cbb8319cfa
13 changed files with 1352 additions and 197 deletions
@@ -31,6 +31,20 @@ process.on('uncaughtException', error => {
}
});
// function startHeapLog() {
// function format(bytes: any) {
// return (bytes / 1024 / 1024).toFixed(2) + ' MB';
// }
// function log() {
// const mu = process.memoryUsage();
// logger.info(`rss:${format(mu.rss)},heapUsed: ${format(mu.heapUsed)},heapTotal: ${format(mu.heapTotal)},external: ${format(mu.external)}`);
// }
// setInterval(log, 200);
// log()
// }
// startHeapLog();
@Configuration({
detectorOptions: {
ignore: [
@@ -64,6 +78,9 @@ export class MainConfiguration {
app: koa.Application;
async onReady() {
// add middleware
// this.app.useMiddleware([ReportMiddleware]);
// add filter