浏览代码

Chore: improve trace information

SukkaW 8 月之前
父节点
当前提交
8fc03a8a26
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Build/lib/rules/base.ts

+ 2 - 1
Build/lib/rules/base.ts

@@ -529,7 +529,8 @@ export class FileOutput {
 
   write(): Promise<unknown> {
     return this.span.traceChildAsync('write all', async (childSpan) => {
-      await this.done();
+      await childSpan.traceChildAsync('done', () => this.done());
+
       childSpan.traceChildSync('write to strategies', () => this.writeToStrategies());
 
       return childSpan.traceChildAsync('output to disk', (childSpan) => {