MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / accept

Method accept

packages/telemetry/src/sink.ts:47–56  ·  view source on GitHub ↗
(event: TelemetryEvent)

Source from the content-addressed store, hash-verified

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;

Callers 3

telemetry.test.tsFile · 0.80
attachSinkMethod · 0.80
trackWithContextMethod · 0.80

Calls 2

flushMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected