Skip to content

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.

chore: remove ai-o11y ff (#12947)

Nityananda Gohain5aca8b0d3c2c
diff --git a/ee/query-service/app/api/featureFlags.go b/ee/query-service/app/api/featureFlags.go
index 09327590e2..0b3936095c 100644
--- a/ee/query-service/app/api/featureFlags.go
+++ b/ee/query-service/app/api/featureFlags.go
@@ -80,15 +80,6 @@ func (ah *APIHandler) getFeatureFlags(w http.ResponseWriter, r *http.Request) {
Route: "",
})
- aiObservability := ah.Signoz.Flagger.BooleanOrEmpty(ctx, flagger.FeatureEnableAIObservability, evalCtx)
- featureSet = append(featureSet, &licensetypes.Feature{
- Name: valuer.NewString(flagger.FeatureEnableAIObservability.String()),
- Active: aiObservability,
- Usage: 0,
- UsageLimit: -1,
- Route: "",
- })
-
metricsReduction := ah.Signoz.Flagger.BooleanOrEmpty(ctx, flagger.FeatureEnableMetricsReduction, evalCtx)
featureSet = append(featureSet, &licensetypes.Feature{
Name: valuer.NewString(flagger.FeatureEnableMetricsReduction.String()),
diff --git a/frontend/src/AppRoutes/Private.tsx b/frontend/src/AppRoutes/Private.tsx
index 7d23c734b9..6bb6beca67 100644
--- a/frontend/src/AppRoutes/Private.tsx
+++ b/frontend/src/AppRoutes/Private.tsx
@@ -8,7 +8,6 @@ import { ORG_PREFERENCES } from 'constants/orgPreferences';
import ROUTES from 'constants/routes';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
import { useIsAIAssistantEnabled } from 'hooks/useIsAIAssistantEnabled';
-import { useIsAIObservabilityEnabled } from 'hooks/useIsAIObservabilityEnabled';
import { isEmpty } from 'lodash-es';
import { useAppContext } from 'providers/App/App';
import { LicensePlatform, LicenseState } from 'types/api/licensesV3/getActive';
@@ -44,7 +43,6 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
const isAdmin = user.role === USER_ROLES.ADMIN;
const isAIAssistantEnabled = useIsAIAssistantEnabled();
- const isAIObservabilityEnabled = useIsAIObservabilityEnabled();
const mapRoutes = useMemo(
() =>
new Map(
@@ -135,14 +133,6 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {
return <Redirect to={ROUTES.HOME} />;
}
- if (
- (pathname.startsWith(`${ROUTES.AI_OBSERVABILITY_BASE}/`) ||
- pathname === ROUTES.AI_OBSERVABILITY_BASE) &&
- !isAIObservabilityEnabled
- ) {
- return <Redirect to={ROUTES.HOME} />;
- }
-
// Check for workspace access restriction (cloud only)
const isCloudPlatform = activeLicense?.platform === LicensePlatform.CLOUD;
diff --git a/frontend/src/constants/features.ts b/frontend/src/constants/features.ts
index a3c70a9086..f98d36bbd0 100644
--- a/frontend/src/constants/features.ts
+++ b/frontend/src/constants/features.ts
@@ -8,6 +8,5 @@ export enum FeatureKeys {
PREMIUM_SUPPORT = 'premium_support',
ANOMALY_DETECTION = 'anomaly_detection',
USE_JSON_BODY = 'use_json_body',
- ENABLE_AI_OBSERVABILITY = 'enable_ai_observability',
ENABLE_METRICS_REDUCTION = 'enable_metrics_reduction',
}
diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsx
index bc3595f551..26935847f0 100644
--- a/frontend/src/container/SideNav/SideNav.tsx
+++ b/frontend/src/container/SideNav/SideNav.tsx
@@ -47,7 +47,6 @@ import { useKeyboardHotkeys } from 'hooks/hotkeys/useKeyboardHotkeys';
import useComponentPermission from 'hooks/useComponentPermission';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
import { useIsAIAssistantEnabled } from 'hooks/useIsAIAssistantEnabled';
-import { useIsAIObservabilityEnabled } from 'hooks/useIsAIObservabilityEnabled';
import { useNotifications } from 'hooks/useNotifications';
import history from 'lib/history';
import { isArray } from 'lodash-es';
@@ -255,7 +254,6 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
const isAdmin = user.role === USER_ROLES.ADMIN;
const isEditor = user.role === USER_ROLES.EDITOR;
const isAIAssistantEnabled = useIsAIAssistantEnabled();
- const isAIObservabilityEnabled = useIsAIObservabilityEnabled();
const aiAssistantActiveConversationId = useAIAssistantStore(
(s) => s.activeConversationId,
);
@@ -295,9 +293,6 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
if (item.key === ROUTES.INTEGRATIONS) {
return shouldShowIntegrationsValue;
}
- if (item.key === ROUTES.AI_OBSERVABILITY_OVERVIEW) {
- return isAIObservabilityEnabled;
- }
return item.isEnabled;
};
@@ -314,7 +309,6 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
isEnterpriseSelfHostedUser,
isAdmin,
isEditor,
- isAIObservabilityEnabled,
]);
// Track if we've done the initial sync (to avoid overwriting user actions during session)
diff --git a/frontend/src/container/SideNav/menuItems.tsx b/frontend/src/container/SideNav/menuItems.tsx
index f85ef7f700..d8c244067d 100644
--- a/frontend/src/container/SideNav/menuItems.tsx
+++ b/frontend/src/container/SideNav/menuItems.tsx
@@ -293,9 +293,7 @@ export const defaultMoreMenuItems: SidebarItem[] = [
label: 'AI Observability',
icon: <Brain size={16} />,
isBeta: true,
- // Gated behind the `enable_ai_observability` feature flag in
- // SideNav's `computedSecondaryMenuItems`; disabled by default.
- isEnabled: false,
+ isEnabled: true,
itemKey: 'ai-observability',
},
{
diff --git a/frontend/src/hooks/useIsAIObservabilityEnabled.ts b/frontend/src/hooks/useIsAIObservabilityEnabled.ts
deleted file mode 100644
index 8214d02e5f..0000000000
--- a/frontend/src/hooks/useIsAIObservabilityEnabled.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { FeatureKeys } from 'constants/features';
-import { useAppContext } from 'providers/App/App';
-
-export function useIsAIObservabilityEnabled(): boolean {
- const { featureFlags } = useAppContext();
- return (
- featureFlags?.find(
- (flag) => flag.name === FeatureKeys.ENABLE_AI_OBSERVABILITY,
- )?.active || false
- );
-}
diff --git a/pkg/flagger/registry.go b/pkg/flagger/registry.go
index dd30b483bc..709607ad5e 100644
--- a/pkg/flagger/registry.go
+++ b/pkg/flagger/registry.go
@@ -9,7 +9,6 @@ var (
FeaturePutMetersInZeus = featuretypes.MustNewName("put_meters_in_zeus")
FeatureUseMeterReporter = featuretypes.MustNewName("use_meter_reporter")
FeatureUseJSONBody = featuretypes.MustNewName("use_json_body")
- FeatureEnableAIObservability = featuretypes.MustNewName("enable_ai_observability")
FeatureEnableMetricsReduction = featuretypes.MustNewName("enable_metrics_reduction")
FeatureResolveSemconvFamilies = featuretypes.MustNewName("resolve_semconv_families")
)
@@ -64,14 +63,6 @@ func MustNewRegistry() featuretypes.Registry {
DefaultVariant: featuretypes.MustNewName("disabled"),
Variants: featuretypes.NewBooleanVariants(),
},
- &featuretypes.Feature{
- Name: FeatureEnableAIObservability,
- Kind: featuretypes.KindBoolean,
- Stage: featuretypes.StageExperimental,
- Description: "Controls whether ai observability is enabled",
- DefaultVariant: featuretypes.MustNewName("disabled"),
- Variants: featuretypes.NewBooleanVariants(),
- },
&featuretypes.Feature{
Name: FeatureEnableMetricsReduction,
Kind: featuretypes.KindBoolean,
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go
index e9ee1554a2..87a1612479 100644
--- a/pkg/query-service/app/http_handler.go
+++ b/pkg/query-service/app/http_handler.go
@@ -1478,15 +1478,6 @@ func (aH *APIHandler) getFeatureFlags(w http.ResponseWriter, r *http.Request) {
Route: "",
})
- aiObservability := aH.Signoz.Flagger.BooleanOrEmpty(r.Context(), flagger.FeatureEnableAIObservability, evalCtx)
- featureSet = append(featureSet, &licensetypes.Feature{
- Name: valuer.NewString(flagger.FeatureEnableAIObservability.String()),
- Active: aiObservability,
- Usage: 0,
- UsageLimit: -1,
- Route: "",
- })
-
aH.Respond(w, featureSet)
}
diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py
deleted file mode 100644
index 2e1028573e..0000000000
--- a/tests/e2e/conftest.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# TODO: remove this file once enable_ai_observability flag is removed or defaulted to True
-import pytest
-from testcontainers.core.container import Network
-
-from fixtures import types
-from fixtures.signoz import create_signoz
-
-
[email protected](name="signoz", scope="package")
-def signoz_e2e( # pylint: disable=too-many-arguments,too-many-positional-arguments
- network: Network,
- zeus: types.TestContainerDocker,
- gateway: types.TestContainerDocker,
- sqlstore: types.TestContainerSQL,
- clickhouse: types.TestContainerClickhouse,
- request: pytest.FixtureRequest,
- pytestconfig: pytest.Config,
-) -> types.SigNoz:
- """
- E2E-scoped SigNoz override. Enables the experimental AI/LLM Observability
- module (disabled by default in pkg/flagger/registry.go) so its routes render
- instead of redirecting to /home — required by the llm-o11y e2e specs. Scoped
- to the e2e package via this conftest so normal integration tests keep the
- stock feature set. Follows the same pattern as
- tests/integration/tests/metricreduction/conftest.py.
- """
- return create_signoz(
- network=network,
- zeus=zeus,
- gateway=gateway,
- sqlstore=sqlstore,
- clickhouse=clickhouse,
- request=request,
- pytestconfig=pytestconfig,
- cache_key="signoz_e2e",
- env_overrides={
- "SIGNOZ_FLAGGER_CONFIG_BOOLEAN_ENABLE__AI__OBSERVABILITY": True,
- },
- )