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: show timeline in decimals (#188)

NIDHI TANDON77abb47b4c4e
diff --git a/frontend/src/modules/Traces/TraceGanttChart.tsx b/frontend/src/modules/Traces/TraceGanttChart.tsx
index 5687ae4069..844fb4c6e0 100644
--- a/frontend/src/modules/Traces/TraceGanttChart.tsx
+++ b/frontend/src/modules/Traces/TraceGanttChart.tsx
@@ -176,8 +176,8 @@ const TraceGanttChart = ({
}
let paddingLeft = 0;
- let startTime = parseInt(record.startTime);
- let duration = parseInt((record.time / 1000000).toFixed(2));
+ let startTime = parseFloat(record.startTime);
+ let duration = parseFloat((record.time / 1000000).toFixed(2));
paddingLeft = parseInt(getPaddingLeft(startTime - minGlobal, maxGlobal - minGlobal, tabsContainerWidth));
let textPadding = paddingLeft;
if(paddingLeft === tabsContainerWidth - 20){