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

Function withTelemetryProperties

packages/agent-core/src/telemetry.ts:28–43  ·  view source on GitHub ↗
(
  telemetry: TelemetryClient,
  defaults: TelemetryProperties,
)

Source from the content-addressed store, hash-verified

26}
27
28export function withTelemetryProperties(
29 telemetry: TelemetryClient,
30 defaults: TelemetryProperties,
31): TelemetryClient {
32 return {
33 track(event, properties) {
34 telemetry.track(event, { ...defaults, ...properties });
35 },
36 withContext(patch) {
37 return withTelemetryProperties(withTelemetryContext(telemetry, patch), defaults);
38 },
39 setContext(patch) {
40 telemetry.setContext?.(patch);
41 },
42 };
43}

Callers 2

withContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected