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
fix: return coldstorage -1 if not set for logs (#9471)
Nityananda Gohain105c3a3b8c56
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.goindex 84dda55438..4a92552bb8 100644--- a/pkg/query-service/app/clickhouseReader/reader.go+++ b/pkg/query-service/app/clickhouseReader/reader.go@@ -1860,6 +1860,7 @@ func (r *ClickHouseReader) GetCustomRetentionTTL(ctx context.Context, orgID striresponse.DefaultTTLDays = 15response.TTLConditions = []model.CustomRetentionRule{}response.Status = constants.StatusFailed+ response.ColdStorageTTLDays = -1return response, nil}@@ -1894,6 +1895,7 @@ func (r *ClickHouseReader) GetCustomRetentionTTL(ctx context.Context, orgID striresponse.ExpectedLogsTime = ttlResult.ExpectedLogsTimeresponse.ExpectedLogsMoveTime = ttlResult.ExpectedLogsMoveTimeresponse.Status = ttlResult.Status+ response.ColdStorageTTLDays = -1if ttlResult.LogsTime > 0 {response.DefaultTTLDays = ttlResult.LogsTime / 24}