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

Method constructor

packages/telemetry/src/sink.ts:40–45  ·  view source on GitHub ↗
(options: EventSinkOptions)

Source from the content-addressed store, hash-verified

38 private flushTimer: ReturnType<typeof setInterval> | null = null;
39
40 constructor(options: EventSinkOptions) {
41 this.transport = options.transport;
42 this.context = buildContext(options.context);
43 this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS;
44 this.flushThreshold = options.flushThreshold ?? DEFAULT_FLUSH_THRESHOLD;
45 }
46
47 accept(event: TelemetryEvent): void {
48 const enriched: EnrichedTelemetryEvent = {

Callers

nothing calls this directly

Calls 1

buildContextFunction · 0.85

Tested by

no test coverage detected