Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
681 B
Plaintext
18 lines
681 B
Plaintext
import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
export interface SpanNode {
|
|
id: string;
|
|
span?: ReadableSpan;
|
|
parentNode?: SpanNode | undefined;
|
|
children: SpanNode[];
|
|
}
|
|
/**
|
|
* This function runs through a list of OTEL Spans, and wraps them in an `SpanNode`
|
|
* where each node holds a reference to their parent node.
|
|
*/
|
|
export declare function groupSpansWithParents(spans: ReadableSpan[]): SpanNode[];
|
|
/**
|
|
* This returns the _local_ parent ID - `parentId` on the span may point to a remote span.
|
|
*/
|
|
export declare function getLocalParentId(span: ReadableSpan): string | undefined;
|
|
//# sourceMappingURL=groupSpansWithParents.d.ts.map
|