(reason: string)
| 529 | } |
| 530 | |
| 531 | flushSummary(reason: string): void { |
| 532 | if (!this.enabled) { |
| 533 | return; |
| 534 | } |
| 535 | |
| 536 | if (this.logSummary) { |
| 537 | const snapshot = this.getSnapshot(); |
| 538 | this.logger.info('Startup trace summary', { |
| 539 | traceId: snapshot.traceId, |
| 540 | reason, |
| 541 | phases: snapshot.phases, |
| 542 | api: { |
| 543 | ...snapshot.api, |
| 544 | }, |
| 545 | }); |
| 546 | } |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | export function createStartupTrace(options: StartupTraceOptions = {}): StartupTrace { |
no test coverage detected