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.

livetail timestamp correction

nityanandagohainf8be4a6d5bf6
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go
index ff20d22cfd..4428ed38cf 100644
--- a/pkg/query-service/app/clickhouseReader/reader.go
+++ b/pkg/query-service/app/clickhouseReader/reader.go
@@ -2908,7 +2908,7 @@ func (r *ClickHouseReader) TailLogs(ctx context.Context, client *model.LogsTailC
"CAST((resources_string_key, resources_string_value), 'Map(String, String)') as resources_string "+
"from %s.%s", r.logsDB, r.logsTable)
- tsStart := uint64(time.Now().UnixNano() / int64(time.Millisecond))
+ tsStart := uint64(time.Now().UnixNano())
if client.Filter.TimestampStart != nil {
tsStart = *client.Filter.TimestampStart
}
@@ -2959,7 +2959,7 @@ func (r *ClickHouseReader) TailLogs(ctx context.Context, client *model.LogsTailC
}
}
if len == 0 {
- tsStart = uint64(time.Now().UnixNano() / int64(time.Millisecond))
+ tsStart = uint64(time.Now().UnixNano())
}
time.Sleep(2 * time.Second)
}