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: telemetry nil pointer error fix (#6051)
Nityananda Gohainf69aaa2cfb77
diff --git a/pkg/query-service/telemetry/telemetry.go b/pkg/query-service/telemetry/telemetry.goindex 62ff020281..972caa4679 100644--- a/pkg/query-service/telemetry/telemetry.go+++ b/pkg/query-service/telemetry/telemetry.go@@ -12,6 +12,7 @@ import ("time""github.com/go-co-op/gocron"+ "go.uber.org/zap""gopkg.in/segmentio/analytics-go.v3""go.signoz.io/signoz/pkg/query-service/constants"@@ -258,7 +259,11 @@ func createTelemetry() {ctx := context.Background()// Define heartbeat functionheartbeatFunc := func() {- tagsInfo, _ := telemetry.reader.GetTagsInfoInLastHeartBeatInterval(ctx, HEART_BEAT_DURATION)+ tagsInfo, err := telemetry.reader.GetTagsInfoInLastHeartBeatInterval(ctx, HEART_BEAT_DURATION)+ if err != nil {+ zap.L().Error("heartbeatFunc: failed to get tags info", zap.Error(err))+ return+ }if len(tagsInfo.Env) != 0 {telemetry.SendEvent(TELEMETRY_EVENT_ENVIRONMENT, map[string]interface{}{"value": tagsInfo.Env}, "", true, false)