-
Notifications
You must be signed in to change notification settings - Fork 67
/
RunDetailTrace.tsx
40 lines (35 loc) 路 1.16 KB
/
RunDetailTrace.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import ResizablePanels from 'components/ResizablePanels';
import {MAX_DAG_NODES} from 'constants/Visualization.constants';
import TestRun from 'models/TestRun.model';
import TestRunEvent from 'models/TestRunEvent.model';
import * as S from './RunDetailTrace.styled';
import SetupAlert from '../SetupAlert';
import AnalyzerPanel from './AnalyzerPanel';
import SpanDetailsPanel from './SpanDetailsPanel';
import TracePanel from './TracePanel';
interface IProps {
run: TestRun;
runEvents: TestRunEvent[];
testId: string;
skipTraceCollection: boolean;
}
export enum VisualizationType {
Dag,
Timeline,
}
export function getIsDAGDisabled(totalSpans: number = 0): boolean {
return totalSpans > MAX_DAG_NODES;
}
const RunDetailTrace = ({run, runEvents, testId, skipTraceCollection}: IProps) => {
return (
<S.Container $isTimeline={false}>
<SetupAlert />
<ResizablePanels>
<SpanDetailsPanel run={run} testId={testId} />
<TracePanel run={run} runEvents={runEvents} testId={testId} skipTraceCollection={skipTraceCollection} />
<AnalyzerPanel run={run} />
</ResizablePanels>
</S.Container>
);
};
export default RunDetailTrace;