Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: added fix for infinite query call on services page (#11755)

Abhi kumara06900bbff23
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/ServiceOverview.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/ServiceOverview.tsx
index a9c3470e34..99f70d96df 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview/ServiceOverview.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/ServiceOverview.tsx
@@ -1,6 +1,5 @@
import { useMemo } from 'react';
import { useParams } from 'react-router-dom';
-import { Skeleton } from 'antd';
import { ENTITY_VERSION_V4 } from 'constants/app';
import { FeatureKeys } from 'constants/features';
import { PANEL_TYPES } from 'constants/queryBuilder';
@@ -124,24 +123,14 @@ function ServiceOverview({
/>
<Card data-testid="service_latency">
<GraphContainer>
- {topLevelOperationsIsLoading && (
- <Skeleton
- style={{
- height: '100%',
- padding: '16px',
- }}
- />
- )}
- {!topLevelOperationsIsLoading && (
- <Graph
- onDragSelect={onDragSelect}
- widget={latencyWidget}
- onClickHandler={handleGraphClick('Service')}
- isQueryEnabled={isQueryEnabled}
- version={ENTITY_VERSION_V4}
- enableDrillDown={SERVICE_DETAIL_DRILLDOWN_ENABLED}
- />
- )}
+ <Graph
+ onDragSelect={onDragSelect}
+ widget={latencyWidget}
+ onClickHandler={handleGraphClick('Service')}
+ isQueryEnabled={isQueryEnabled}
+ version={ENTITY_VERSION_V4}
+ enableDrillDown={SERVICE_DETAIL_DRILLDOWN_ENABLED}
+ />
</GraphContainer>
</Card>
</>
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
index 26cf804acd..580dcb73d5 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
@@ -1,4 +1,3 @@
-import { Skeleton } from 'antd';
import { Typography } from '@signozhq/ui/typography';
import axios from 'axios';
import { SOMETHING_WENT_WRONG } from 'constants/api';
@@ -29,24 +28,14 @@ function TopLevelOperation({
</Typography>
) : (
<GraphContainer>
- {topLevelOperationsIsLoading && (
- <Skeleton
- style={{
- height: '100%',
- padding: '16px',
- }}
- />
- )}
- {!topLevelOperationsIsLoading && (
- <Graph
- widget={widget}
- onClickHandler={handleGraphClick(opName)}
- onDragSelect={onDragSelect}
- isQueryEnabled={!topLevelOperationsIsLoading}
- version={ENTITY_VERSION_V4}
- enableDrillDown={SERVICE_DETAIL_DRILLDOWN_ENABLED}
- />
- )}
+ <Graph
+ widget={widget}
+ onClickHandler={handleGraphClick(opName)}
+ onDragSelect={onDragSelect}
+ isQueryEnabled={!topLevelOperationsIsLoading}
+ version={ENTITY_VERSION_V4}
+ enableDrillDown={SERVICE_DETAIL_DRILLDOWN_ENABLED}
+ />
</GraphContainer>
)}
</Card>