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.

fix: correlation time stamps for APM to traces and logs (#6632)

Vikrant Gupta96da21df05fe
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview.tsx
index 6decf72b39..24e47041d7 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview.tsx
@@ -185,6 +185,7 @@ function Application(): JSX.Element {
panelTypes: PANEL_TYPES.TIME_SERIES,
yAxisUnit: '%',
id: SERVICE_CHART_ID.errorPercentage,
+ fillSpans: true,
}),
[servicename, tagFilterItems, topLevelOperationsRoute],
);
@@ -222,12 +223,11 @@ function Application(): JSX.Element {
apmToTraceQuery: Query,
isViewLogsClicked?: boolean,
): (() => void) => (): void => {
- const currentTime = timestamp;
- const endTime = timestamp + stepInterval;
- console.log(endTime, stepInterval);
+ const endTime = timestamp;
+ const startTime = timestamp - stepInterval;
const urlParams = new URLSearchParams(search);
- urlParams.set(QueryParams.startTime, currentTime.toString());
+ urlParams.set(QueryParams.startTime, startTime.toString());
urlParams.set(QueryParams.endTime, endTime.toString());
urlParams.delete(QueryParams.relativeTime);
const avialableParams = routeConfig[ROUTES.TRACE];
diff --git a/frontend/src/container/MetricsApplication/Tabs/util.ts b/frontend/src/container/MetricsApplication/Tabs/util.ts
index e6d58831a0..e1f8164b09 100644
--- a/frontend/src/container/MetricsApplication/Tabs/util.ts
+++ b/frontend/src/container/MetricsApplication/Tabs/util.ts
@@ -65,11 +65,11 @@ export function onViewTracePopupClick({
stepInterval,
}: OnViewTracePopupClickProps): VoidFunction {
return (): void => {
- const currentTime = timestamp;
- const endTime = timestamp + (stepInterval || 60);
+ const endTime = timestamp;
+ const startTime = timestamp - (stepInterval || 60);
const urlParams = new URLSearchParams(window.location.search);
- urlParams.set(QueryParams.startTime, currentTime.toString());
+ urlParams.set(QueryParams.startTime, startTime.toString());
urlParams.set(QueryParams.endTime, endTime.toString());
urlParams.delete(QueryParams.relativeTime);
const avialableParams = routeConfig[ROUTES.TRACE];