Skip to content

Commit

Permalink
Fix: ruleset output trace result
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jan 29, 2025
1 parent f9163db commit ee40f14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Build/lib/rules/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ export class FileOutput {
}

write(): Promise<void> {
return this.span.traceChildAsync('write all', async () => {
return this.span.traceChildAsync('write all', async (childSpan) => {
const promises: Array<Promise<void> | void> = [];

await this.writeToStrategies();
await childSpan.traceChildAsync('write to strategies', this.writeToStrategies.bind(this));

invariant(this.title, 'Missing title');
invariant(this.description, 'Missing description');
Expand All @@ -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,
Expand Down

0 comments on commit ee40f14

Please sign in to comment.