feat: sort spans with startTime or spanId in a segment (#100)

This commit is contained in:
Fine0830
2022-05-26 13:04:43 +08:00
committed by GitHub
parent b34c0b0c72
commit 74cb089271
11 changed files with 68 additions and 34 deletions

View File

@@ -46,8 +46,15 @@ export interface Span {
children?: Span[];
tags?: Array<Map<string, string>>;
logs?: log[];
parentSegmentId?: string;
refs?: Ref[];
}
export type Ref = {
type: string;
parentSegmentId: string;
parentSpanId: number;
traceId: string;
};
export interface log {
time: number;
data: Map<string, string>;