(entry: TelemetryEntry, name: string)
| 21 | } |
| 22 | |
| 23 | function 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 | |
| 31 | function isRootSpan(entry: TelemetryEntry): boolean { |
| 32 | const parent = entry.parentSpanId ?? ""; |
no outgoing calls
no test coverage detected
searching dependent graphs…