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,