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
chore: added infraMonitoringV2 feature flag (#12031)
Nikhil Mantri1d441b63cf89
diff --git a/ee/query-service/app/api/featureFlags.go b/ee/query-service/app/api/featureFlags.goindex c55cbd6b75..969ceff9a0 100644--- a/ee/query-service/app/api/featureFlags.go+++ b/ee/query-service/app/api/featureFlags.go@@ -116,6 +116,15 @@ func (ah *APIHandler) getFeatureFlags(w http.ResponseWriter, r *http.Request) {Route: "",})+ infraMonitoringV2 := ah.Signoz.Flagger.BooleanOrEmpty(ctx, flagger.FeatureUseInfraMonitoringV2, evalCtx)+ featureSet = append(featureSet, &licensetypes.Feature{+ Name: valuer.NewString(flagger.FeatureUseInfraMonitoringV2.String()),+ Active: infraMonitoringV2,+ Usage: 0,+ UsageLimit: -1,+ Route: "",+ })+if constants.IsDotMetricsEnabled {for idx, feature := range featureSet {if feature.Name == licensetypes.DotMetricsEnabled {diff --git a/pkg/flagger/registry.go b/pkg/flagger/registry.goindex d6e1785bb1..f25c03f9f0 100644--- a/pkg/flagger/registry.go+++ b/pkg/flagger/registry.go@@ -14,6 +14,7 @@ var (FeatureUseDashboardV2 = featuretypes.MustNewName("use_dashboard_v2")FeatureEnableAIObservability = featuretypes.MustNewName("enable_ai_observability")FeatureEnableMetricsReduction = featuretypes.MustNewName("enable_metrics_reduction")+ FeatureUseInfraMonitoringV2 = featuretypes.MustNewName("use_infra_monitoring_v2"))func MustNewRegistry() featuretypes.Registry {@@ -106,6 +107,14 @@ func MustNewRegistry() featuretypes.Registry {DefaultVariant: featuretypes.MustNewName("disabled"),Variants: featuretypes.NewBooleanVariants(),},+ &featuretypes.Feature{+ Name: FeatureUseInfraMonitoringV2,+ Kind: featuretypes.KindBoolean,+ Stage: featuretypes.StageExperimental,+ Description: "Controls whether infra monitoring v2 is enabled",+ DefaultVariant: featuretypes.MustNewName("disabled"),+ Variants: featuretypes.NewBooleanVariants(),+ },)if err != nil {panic(err)diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.goindex c6b94fef18..0dea9e9843 100644--- a/pkg/query-service/app/http_handler.go+++ b/pkg/query-service/app/http_handler.go@@ -1687,6 +1687,15 @@ func (aH *APIHandler) getFeatureFlags(w http.ResponseWriter, r *http.Request) {Route: "",})+ infraMonitoringV2 := aH.Signoz.Flagger.BooleanOrEmpty(r.Context(), flagger.FeatureUseInfraMonitoringV2, evalCtx)+ featureSet = append(featureSet, &licensetypes.Feature{+ Name: valuer.NewString(flagger.FeatureUseInfraMonitoringV2.String()),+ Active: infraMonitoringV2,+ Usage: 0,+ UsageLimit: -1,+ Route: "",+ })+if constants.IsDotMetricsEnabled {for idx, feature := range featureSet {if feature.Name == licensetypes.DotMetricsEnabled {