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

Function recordingTelemetry

packages/server/test/sessions.e2e.test.ts:81–92  ·  view source on GitHub ↗
(records: TelemetryRecord[])

Source from the content-addressed store, hash-verified

79}
80
81function recordingTelemetry(records: TelemetryRecord[]): TelemetryClient {
82 return {
83 track: (event, properties) => {
84 records.push({ event, sessionId: null, properties });
85 },
86 withContext: (patch) => ({
87 track: (event, properties) => {
88 records.push({ event, sessionId: patch.sessionId ?? null, properties });
89 },
90 }),
91 };
92}
93
94function appOf(r: RunningServer): {
95 inject: (req: unknown) => Promise<{ statusCode: number; json: () => unknown }>;

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected