mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-16 17:31:45 +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;
|
||||
}
|
||||
|
||||
const { selectedTime } = globalTime;
|
||||
|
||||
if (traces.filterLoading) {
|
||||
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) {
|
||||
dispatch({
|
||||
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||
@ -55,12 +42,12 @@ export const GetSpans = (
|
||||
}
|
||||
|
||||
const response = await getSpans({
|
||||
end,
|
||||
end: props.end,
|
||||
function: props.function,
|
||||
groupBy: props.groupBy,
|
||||
selectedFilter: props.selectedFilter,
|
||||
selectedTags: props.selectedTags,
|
||||
start,
|
||||
start: props.start,
|
||||
step: props.step,
|
||||
isFilterExclude: props.isFilterExclude,
|
||||
spanKind: props.spanKind,
|
||||
|
Loading…
x
Reference in New Issue
Block a user