ソースを参照

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) => {