(event: TelemetryEvent)
| 45 | } |
| 46 | |
| 47 | accept(event: TelemetryEvent): void { |
| 48 | const enriched: EnrichedTelemetryEvent = { |
| 49 | ...event, |
| 50 | context: { ...this.context }, |
| 51 | }; |
| 52 | this.buffer.push(enriched); |
| 53 | if (this.buffer.length >= this.flushThreshold) { |
| 54 | void this.flush().catch(() => {}); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | startPeriodicFlush(): void { |
| 59 | if (this.flushTimer !== null) return; |
no test coverage detected