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: trace detail api start and end time (#5325)

Vishal Sharma878cb7c0a66b
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go
index d8c902055b..33b8e7ec08 100644
--- a/pkg/query-service/app/clickhouseReader/reader.go
+++ b/pkg/query-service/app/clickhouseReader/reader.go
@@ -1993,8 +1993,8 @@ func (r *ClickHouseReader) SearchTraces(ctx context.Context, params *model.Searc
}
}
- searchSpansResult[0].StartTimestampMillis = startTime - durationNano
- searchSpansResult[0].EndTimestampMillis = endTime + durationNano
+ searchSpansResult[0].StartTimestampMillis = startTime - (durationNano/1000000)
+ searchSpansResult[0].EndTimestampMillis = endTime + (durationNano/1000000)
return &searchSpansResult, nil
}