Buckets:
| import type { TraceEvent } from '../types' | |
| import reportToTelemetry from './to-telemetry' | |
| import reportToJson from './to-json' | |
| import reportToJsonBuild from './to-json-build' | |
| import type { Reporter } from './types' | |
| class MultiReporter implements Reporter { | |
| private reporters: Reporter[] = [] | |
| constructor(reporters: Reporter[]) { | |
| this.reporters = reporters | |
| } | |
| async flushAll(opts?: { end: boolean }) { | |
| await Promise.all(this.reporters.map((reporter) => reporter.flushAll(opts))) | |
| } | |
| report(event: TraceEvent) { | |
| this.reporters.forEach((reporter) => reporter.report(event)) | |
| } | |
| } | |
| // JSON is always reported to allow for diagnostics | |
| export const reporter = new MultiReporter([ | |
| reportToJson, | |
| reportToJsonBuild, | |
| reportToTelemetry, | |
| ]) | |
Xet Storage Details
- Size:
- 760 Bytes
- Xet hash:
- 81bcd9d0c4dcb950ad4f7aed9b19822214805970e1334375f827a4d57f5ce899
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.