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

Function sanitizeProperties

packages/telemetry/src/client.ts:267–275  ·  view source on GitHub ↗
(input: TelemetryProperties)

Source from the content-addressed store, hash-verified

265}
266
267function sanitizeProperties(input: TelemetryProperties): TelemetryProperties {
268 const out: TelemetryProperties = {};
269 for (const [key, value] of Object.entries(input)) {
270 if (isTelemetryPrimitive(value)) {
271 out[key] = value;
272 }
273 }
274 return out;
275}

Callers 1

trackWithContextMethod · 0.85

Calls 1

isTelemetryPrimitiveFunction · 0.90

Tested by

no test coverage detected