mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-16 22:41:49 +08:00
refactor: aggregrate api uses global time (#3911)
This commit is contained in:
parent
d42bf50ddb
commit
31b07cc02c
@ -28,23 +28,10 @@ export const GetSpans = (
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { selectedTime } = globalTime;
|
|
||||||
|
|
||||||
if (traces.filterLoading) {
|
if (traces.filterLoading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @TODO refactor this logic when share url functionlity is updated
|
|
||||||
const isCustomSelected = selectedTime === 'custom';
|
|
||||||
|
|
||||||
const end = isCustomSelected
|
|
||||||
? globalTime.maxTime + 15 * 60 * 1000000000
|
|
||||||
: props.end;
|
|
||||||
|
|
||||||
const start = isCustomSelected
|
|
||||||
? globalTime.minTime - 15 * 60 * 1000000000
|
|
||||||
: props.start;
|
|
||||||
|
|
||||||
if (!spansGraph.loading) {
|
if (!spansGraph.loading) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: UPDATE_TRACE_GRAPH_LOADING,
|
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||||
@ -55,12 +42,12 @@ export const GetSpans = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await getSpans({
|
const response = await getSpans({
|
||||||
end,
|
end: props.end,
|
||||||
function: props.function,
|
function: props.function,
|
||||||
groupBy: props.groupBy,
|
groupBy: props.groupBy,
|
||||||
selectedFilter: props.selectedFilter,
|
selectedFilter: props.selectedFilter,
|
||||||
selectedTags: props.selectedTags,
|
selectedTags: props.selectedTags,
|
||||||
start,
|
start: props.start,
|
||||||
step: props.step,
|
step: props.step,
|
||||||
isFilterExclude: props.isFilterExclude,
|
isFilterExclude: props.isFilterExclude,
|
||||||
spanKind: props.spanKind,
|
spanKind: props.spanKind,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user