mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-04 08:41:11 +01:00
vmui: show tracing in json view (#3316)
* vmui: show tracing in json view * vmui: refactor tracing view
This commit is contained in:
parent
10791bf224
commit
7130af7fd2
@ -86,22 +86,16 @@ const CustomPanel: FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
{error && <Alert color="error" severity="error" sx={{whiteSpace: "pre-wrap", mt: 2}}>{error}</Alert>}
|
{error && <Alert color="error" severity="error" sx={{whiteSpace: "pre-wrap", mt: 2}}>{error}</Alert>}
|
||||||
{warning && <Alert color="warning" severity="warning" sx={{whiteSpace: "pre-wrap", my: 2}}>{warning}</Alert>}
|
{warning && <Alert color="warning" severity="warning" sx={{whiteSpace: "pre-wrap", my: 2}}>{warning}</Alert>}
|
||||||
|
{isTracingEnabled && <TracingsView
|
||||||
|
traces={tracesState}
|
||||||
|
onDeleteClick={handleTraceDelete}
|
||||||
|
/>}
|
||||||
{graphData && period && (displayType === "chart") && <>
|
{graphData && period && (displayType === "chart") && <>
|
||||||
{isTracingEnabled && <TracingsView
|
|
||||||
traces={tracesState}
|
|
||||||
onDeleteClick={handleTraceDelete}
|
|
||||||
/>}
|
|
||||||
<GraphView data={graphData} period={period} customStep={customStep} query={query} yaxis={yaxis}
|
<GraphView data={graphData} period={period} customStep={customStep} query={query} yaxis={yaxis}
|
||||||
setYaxisLimits={setYaxisLimits} setPeriod={setPeriod}/>
|
setYaxisLimits={setYaxisLimits} setPeriod={setPeriod}/>
|
||||||
</>}
|
</>}
|
||||||
{liveData && (displayType === "code") && <JsonView data={liveData}/>}
|
{liveData && (displayType === "code") && <JsonView data={liveData}/>}
|
||||||
{liveData && (displayType === "table") && <>
|
{liveData && (displayType === "table") && <TableView data={liveData} displayColumns={displayColumns}/>}
|
||||||
{isTracingEnabled && <TracingsView
|
|
||||||
traces={tracesState}
|
|
||||||
onDeleteClick={handleTraceDelete}
|
|
||||||
/>}
|
|
||||||
<TableView data={liveData} displayColumns={displayColumns}/>
|
|
||||||
</>}
|
|
||||||
</Box>}
|
</Box>}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user