From ee40f141f89dbe35448868c97f87e9b311d86a96 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Wed, 29 Jan 2025 21:28:41 +0800 Subject: [PATCH] Fix: ruleset output trace result --- Build/lib/rules/base.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Build/lib/rules/base.ts b/Build/lib/rules/base.ts index eed169f1..8d7fcbba 100644 --- a/Build/lib/rules/base.ts +++ b/Build/lib/rules/base.ts @@ -416,10 +416,10 @@ export class FileOutput { } write(): Promise { - return this.span.traceChildAsync('write all', async () => { + return this.span.traceChildAsync('write all', async (childSpan) => { const promises: Array | void> = []; - await this.writeToStrategies(); + await childSpan.traceChildAsync('write to strategies', this.writeToStrategies.bind(this)); invariant(this.title, 'Missing title'); invariant(this.description, 'Missing description'); @@ -429,7 +429,7 @@ export class FileOutput { if (strategy) { const basename = (strategy.overwriteFilename || this.id) + '.' + strategy.fileExtension; promises.push(strategy.output( - this.span, + childSpan, this.title, this.description, this.date,