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: nil pointer error on failed to create rule (#7767)
Srikanth Chekuri629c54d3f91d
diff --git a/ee/query-service/rules/manager.go b/ee/query-service/rules/manager.goindex cb67a5ab4b..e05146348a 100644--- a/ee/query-service/rules/manager.go+++ b/ee/query-service/rules/manager.go@@ -127,7 +127,7 @@ func TestNotification(opts baserules.PrepareTestRuleOptions) (int, *basemodel.Ap)if err != nil {- zap.L().Error("failed to prepare a new threshold rule for test", zap.String("name", rule.Name()), zap.Error(err))+ zap.L().Error("failed to prepare a new threshold rule for test", zap.String("name", alertname), zap.Error(err))return 0, basemodel.BadRequest(err)}@@ -146,7 +146,7 @@ func TestNotification(opts baserules.PrepareTestRuleOptions) (int, *basemodel.Ap)if err != nil {- zap.L().Error("failed to prepare a new promql rule for test", zap.String("name", rule.Name()), zap.Error(err))+ zap.L().Error("failed to prepare a new promql rule for test", zap.String("name", alertname), zap.Error(err))return 0, basemodel.BadRequest(err)}} else if parsedRule.RuleType == ruletypes.RuleTypeAnomaly {@@ -161,7 +161,7 @@ func TestNotification(opts baserules.PrepareTestRuleOptions) (int, *basemodel.Apbaserules.WithSQLStore(opts.SQLStore),)if err != nil {- zap.L().Error("failed to prepare a new anomaly rule for test", zap.String("name", rule.Name()), zap.Error(err))+ zap.L().Error("failed to prepare a new anomaly rule for test", zap.String("name", alertname), zap.Error(err))return 0, basemodel.BadRequest(err)}} else {