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

Function getStringAttribute

nodejs/test/e2e/telemetry.e2e.test.ts:23–29  ·  view source on GitHub ↗
(entry: TelemetryEntry, name: string)

Source from the content-addressed store, hash-verified

21}
22
23function getStringAttribute(entry: TelemetryEntry, name: string): string | undefined {
24 const value = entry.attributes?.[name];
25 if (value === undefined || value === null) {
26 return undefined;
27 }
28 return typeof value === "string" ? value : JSON.stringify(value);
29}
30
31function isRootSpan(entry: TelemetryEntry): boolean {
32 const parent = entry.parentSpanId ?? "";

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…