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

Function isRootSpan

nodejs/test/e2e/telemetry.e2e.test.ts:31–34  ·  view source on GitHub ↗
(entry: TelemetryEntry)

Source from the content-addressed store, hash-verified

29}
30
31function isRootSpan(entry: TelemetryEntry): boolean {
32 const parent = entry.parentSpanId ?? "";
33 return parent === "" || parent === "0000000000000000";
34}
35
36async function readTelemetryEntries(path: string): Promise<TelemetryEntry[]> {
37 const content = await readFile(path, "utf8");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…