(status: number)
| 277 | } |
| 278 | |
| 279 | function handleStatus(status: number): void { |
| 280 | if (status >= 500 || status === 429) { |
| 281 | throw new TransientTelemetryError(`HTTP ${String(status)}`); |
| 282 | } |
| 283 | if (status >= 400) { |
| 284 | return; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | function readJsonl(path: string): EnrichedTelemetryEvent[] { |
| 289 | const text = readFileSync(path, 'utf-8'); |