mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 20:05:58 +08:00
fix: total count is usage explorer (#2117)
* fix: total count is usage explorer * chore: no spans found is also wrapped under typography
This commit is contained in:
parent
ca53136cbf
commit
ba6818f487
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
//@ts-nocheck
|
//@ts-nocheck
|
||||||
|
|
||||||
import { Select, Space } from 'antd';
|
import { Select, Space, Typography } from 'antd';
|
||||||
import Graph from 'components/Graph';
|
import Graph from 'components/Graph';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { connect, useSelector } from 'react-redux';
|
import { connect, useSelector } from 'react-redux';
|
||||||
@ -84,7 +84,7 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element {
|
|||||||
if (selectedTime && selectedInterval) {
|
if (selectedTime && selectedInterval) {
|
||||||
const maxTime = new Date().getTime() * 1000000;
|
const maxTime = new Date().getTime() * 1000000;
|
||||||
const minTime = maxTime - selectedTime.value * 24 * 3600000 * 1000000;
|
const minTime = maxTime - selectedTime.value * 24 * 3600000 * 1000000;
|
||||||
|
|
||||||
getUsageData(minTime, maxTime, selectedInterval.value, selectedService);
|
getUsageData(minTime, maxTime, selectedInterval.value, selectedService);
|
||||||
}
|
}
|
||||||
}, [selectedTime, selectedInterval, selectedService, getUsageData]);
|
}, [selectedTime, selectedInterval, selectedService, getUsageData]);
|
||||||
@ -171,20 +171,22 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element {
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
No spans found. Please add instrumentation (follow this
|
<Typography>
|
||||||
<a
|
No spans found. Please add instrumentation (follow this
|
||||||
href="https://signoz.io/docs/instrumentation/overview"
|
<a
|
||||||
target="_blank"
|
href="https://signoz.io/docs/instrumentation/overview"
|
||||||
style={{ marginLeft: 3 }}
|
target="_blank"
|
||||||
rel="noreferrer"
|
style={{ marginLeft: 3 }}
|
||||||
>
|
rel="noreferrer"
|
||||||
guide
|
>
|
||||||
</a>
|
guide
|
||||||
)
|
</a>
|
||||||
|
)
|
||||||
|
</Typography>
|
||||||
</Space>
|
</Space>
|
||||||
) : (
|
) : (
|
||||||
<Space style={{ display: 'block', marginLeft: 20, width: 200 }}>
|
<Space style={{ display: 'block', marginLeft: 20, width: 200 }}>
|
||||||
{`Total count is ${totalCount}`}
|
<Typography>{`Total count is ${totalCount}`}</Typography>
|
||||||
</Space>
|
</Space>
|
||||||
)}
|
)}
|
||||||
</Space>
|
</Space>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user