mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Chore: improve trace information
This commit is contained in:
parent
97da9abea6
commit
8fc03a8a26
@ -529,7 +529,8 @@ export class FileOutput {
|
|||||||
|
|
||||||
write(): Promise<unknown> {
|
write(): Promise<unknown> {
|
||||||
return this.span.traceChildAsync('write all', async (childSpan) => {
|
return this.span.traceChildAsync('write all', async (childSpan) => {
|
||||||
await this.done();
|
await childSpan.traceChildAsync('done', () => this.done());
|
||||||
|
|
||||||
childSpan.traceChildSync('write to strategies', () => this.writeToStrategies());
|
childSpan.traceChildSync('write to strategies', () => this.writeToStrategies());
|
||||||
|
|
||||||
return childSpan.traceChildAsync('output to disk', (childSpan) => {
|
return childSpan.traceChildAsync('output to disk', (childSpan) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user