Compare commits

...

1 Commits

Author SHA1 Message Date
ahmadshaheer
afd7e49557 fix: request to fix the issue of intermittent incorrect empty state in span logs 2025-10-30 16:29:27 +04:30
2 changed files with 1 additions and 3 deletions

View File

@@ -112,7 +112,6 @@ export const useSpanContextLogs = ({
traceId,
spanId,
timeRange,
isDrawerOpen = true,
}: UseSpanContextLogsProps): UseSpanContextLogsReturn => {
const [allLogs, setAllLogs] = useState<ILog[]>([]);
const [spanLogIds, setSpanLogIds] = useState<Set<string>>(new Set());
@@ -293,7 +292,7 @@ export const useSpanContextLogs = ({
],
queryFn: () =>
GetMetricQueryRange(traceOnlyQueryPayload as any, ENTITY_VERSION_V5),
enabled: isDrawerOpen && !!traceOnlyQueryPayload && spanLogs.length === 0,
enabled: !!traceOnlyQueryPayload,
staleTime: FIVE_MINUTES_IN_MS,
});

View File

@@ -61,7 +61,6 @@ function SpanRelatedSignals({
startTime: traceStartTime - FIVE_MINUTES_IN_MS,
endTime: traceEndTime + FIVE_MINUTES_IN_MS,
},
isDrawerOpen: isOpen,
});
const handleTabChange = useCallback((e: RadioChangeEvent): void => {