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

Function recordingTelemetry

packages/node-sdk/test/telemetry.ts:9–20  ·  view source on GitHub ↗
(records: TelemetryRecord[])

Source from the content-addressed store, hash-verified

7}
8
9export function recordingTelemetry(records: TelemetryRecord[]): TelemetryClient {
10 return {
11 track: (event, properties) => {
12 records.push({ event, sessionId: null, properties });
13 },
14 withContext: (patch) => ({
15 track: (event, properties) => {
16 records.push({ event, sessionId: patch.sessionId ?? null, properties });
17 },
18 }),
19 };
20}

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected