MCPcopy Create free account
hub / github.com/github/copilot-sdk / readTelemetryEntries

Function readTelemetryEntries

nodejs/test/e2e/telemetry.e2e.test.ts:36–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

34}
35
36async function readTelemetryEntries(path: string): Promise<TelemetryEntry[]> {
37 const content = await readFile(path, "utf8");
38 const entries: TelemetryEntry[] = [];
39 for (const line of content.split("\n")) {
40 const trimmed = line.trim();
41 if (!trimmed) {
42 continue;
43 }
44
45 entries.push(JSON.parse(trimmed));
46 }
47
48 return entries;
49}
50
51describe("Telemetry export", async () => {
52 const marker = "copilot-sdk-telemetry-e2e";

Callers 1

Calls 3

parseMethod · 0.80
readFileFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…