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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
parser updated
nityanandagohain6ac7cb10228d
diff --git a/pkg/query-service/app/logs/parser.go b/pkg/query-service/app/logs/parser.goindex 7d9438976b..1ea0dc9ac7 100644--- a/pkg/query-service/app/logs/parser.go+++ b/pkg/query-service/app/logs/parser.go@@ -243,16 +243,32 @@ func GenerateSQLWhere(allFields *model.GetFieldsResponse, params *model.LogsFilt}if params.TimestampStart != nil {- tokens = append(tokens, fmt.Sprintf("and timestamp >= '%d' ", *params.TimestampStart))+ filter := fmt.Sprintf("timestamp >= '%d' ", *params.TimestampStart)+ if len(tokens) > 0 {+ filter = "and " + filter+ }+ tokens = append(tokens, filter)}if params.TimestampEnd != nil {- tokens = append(tokens, fmt.Sprintf("and timestamp <= '%d' ", *params.TimestampEnd))+ filter := fmt.Sprintf("timestamp <= '%d' ", *params.TimestampEnd)+ if len(tokens) > 0 {+ filter = "and " + filter+ }+ tokens = append(tokens, filter)}if params.IdStart != nil {- tokens = append(tokens, fmt.Sprintf("and id > '%v' ", *params.IdStart))+ filter := fmt.Sprintf("id > '%v' ", *params.IdStart)+ if len(tokens) > 0 {+ filter = "and " + filter+ }+ tokens = append(tokens, filter)}if params.IdEnd != nil {- tokens = append(tokens, fmt.Sprintf("and id < '%v' ", *params.IdEnd))+ filter := fmt.Sprintf("id < '%v' ", *params.IdEnd)+ if len(tokens) > 0 {+ filter = "and " + filter+ }+ tokens = append(tokens, filter)}sqlWhere := strings.Join(tokens, "")