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

Function sampleEvent

packages/telemetry/test/telemetry.test.ts:79–95  ·  view source on GitHub ↗
(name = 'started')

Source from the content-addressed store, hash-verified

77}
78
79function sampleEvent(name = 'started'): EnrichedTelemetryEvent {
80 return {
81 event_id: 'event-1',
82 device_id: 'device-1',
83 session_id: 'session-1',
84 event: name,
85 timestamp: 123,
86 properties: {
87 resumed: false,
88 count: 2,
89 },
90 context: {
91 version: '1.2.3',
92 runtime: 'node',
93 },
94 };
95}
96
97describe('TelemetryClient', () => {
98 it('queues events before sink attach, then drains with backfilled context ids', async () => {

Callers 1

telemetry.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected