mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 22:35:53 +08:00
chore: trace funnels feature flag changes (#7478)
* chore: trace funnels feature flag
This commit is contained in:
parent
e637487984
commit
62c033ccf8
@ -157,6 +157,13 @@ var BasicPlan = basemodel.FeatureSet{
|
|||||||
UsageLimit: -1,
|
UsageLimit: -1,
|
||||||
Route: "",
|
Route: "",
|
||||||
},
|
},
|
||||||
|
basemodel.Feature{
|
||||||
|
Name: basemodel.TraceFunnels,
|
||||||
|
Active: false,
|
||||||
|
Usage: 0,
|
||||||
|
UsageLimit: -1,
|
||||||
|
Route: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var ProPlan = basemodel.FeatureSet{
|
var ProPlan = basemodel.FeatureSet{
|
||||||
@ -279,6 +286,13 @@ var ProPlan = basemodel.FeatureSet{
|
|||||||
UsageLimit: -1,
|
UsageLimit: -1,
|
||||||
Route: "",
|
Route: "",
|
||||||
},
|
},
|
||||||
|
basemodel.Feature{
|
||||||
|
Name: basemodel.TraceFunnels,
|
||||||
|
Active: false,
|
||||||
|
Usage: 0,
|
||||||
|
UsageLimit: -1,
|
||||||
|
Route: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var EnterprisePlan = basemodel.FeatureSet{
|
var EnterprisePlan = basemodel.FeatureSet{
|
||||||
@ -415,4 +429,11 @@ var EnterprisePlan = basemodel.FeatureSet{
|
|||||||
UsageLimit: -1,
|
UsageLimit: -1,
|
||||||
Route: "",
|
Route: "",
|
||||||
},
|
},
|
||||||
|
basemodel.Feature{
|
||||||
|
Name: basemodel.TraceFunnels,
|
||||||
|
Active: false,
|
||||||
|
Usage: 0,
|
||||||
|
UsageLimit: -1,
|
||||||
|
Route: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -25,4 +25,5 @@ export enum FeatureKeys {
|
|||||||
ANOMALY_DETECTION = 'ANOMALY_DETECTION',
|
ANOMALY_DETECTION = 'ANOMALY_DETECTION',
|
||||||
AWS_INTEGRATION = 'AWS_INTEGRATION',
|
AWS_INTEGRATION = 'AWS_INTEGRATION',
|
||||||
ONBOARDING_V3 = 'ONBOARDING_V3',
|
ONBOARDING_V3 = 'ONBOARDING_V3',
|
||||||
|
TRACE_FUNNELS = 'TRACE_FUNNELS',
|
||||||
}
|
}
|
||||||
|
@ -2,18 +2,24 @@ import './TracesModulePage.styles.scss';
|
|||||||
|
|
||||||
import RouteTab from 'components/RouteTab';
|
import RouteTab from 'components/RouteTab';
|
||||||
import { TabRoutes } from 'components/RouteTab/types';
|
import { TabRoutes } from 'components/RouteTab/types';
|
||||||
|
import { FeatureKeys } from 'constants/features';
|
||||||
import history from 'lib/history';
|
import history from 'lib/history';
|
||||||
|
import { useAppContext } from 'providers/App/App';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
|
|
||||||
import { tracesExplorer, tracesFunnel, tracesSaveView } from './constants';
|
import { tracesExplorer, tracesFunnel, tracesSaveView } from './constants';
|
||||||
|
|
||||||
function TracesModulePage(): JSX.Element {
|
function TracesModulePage(): JSX.Element {
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
const { featureFlags } = useAppContext();
|
||||||
|
|
||||||
|
const isTraceFunnelsEnabled =
|
||||||
|
featureFlags?.find((flag) => flag.name === FeatureKeys.TRACE_FUNNELS)
|
||||||
|
?.active || false;
|
||||||
|
|
||||||
const routes: TabRoutes[] = [
|
const routes: TabRoutes[] = [
|
||||||
tracesExplorer,
|
tracesExplorer,
|
||||||
// TODO(shaheer): remove this check after everything is ready
|
isTraceFunnelsEnabled ? tracesFunnel : null,
|
||||||
process.env.NODE_ENV === 'development' ? tracesFunnel : null,
|
|
||||||
tracesSaveView,
|
tracesSaveView,
|
||||||
].filter(Boolean) as TabRoutes[];
|
].filter(Boolean) as TabRoutes[];
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ const AlertChannelOpsgenie = "ALERT_CHANNEL_OPSGENIE"
|
|||||||
const AlertChannelEmail = "ALERT_CHANNEL_EMAIL"
|
const AlertChannelEmail = "ALERT_CHANNEL_EMAIL"
|
||||||
const AnomalyDetection = "ANOMALY_DETECTION"
|
const AnomalyDetection = "ANOMALY_DETECTION"
|
||||||
const HostsInfraMonitoring = "HOSTS_INFRA_MONITORING"
|
const HostsInfraMonitoring = "HOSTS_INFRA_MONITORING"
|
||||||
|
const TraceFunnels = "TRACE_FUNNELS"
|
||||||
|
|
||||||
var BasicPlan = FeatureSet{
|
var BasicPlan = FeatureSet{
|
||||||
Feature{
|
Feature{
|
||||||
@ -124,4 +125,11 @@ var BasicPlan = FeatureSet{
|
|||||||
UsageLimit: -1,
|
UsageLimit: -1,
|
||||||
Route: "",
|
Route: "",
|
||||||
},
|
},
|
||||||
|
Feature{
|
||||||
|
Name: TraceFunnels,
|
||||||
|
Active: false,
|
||||||
|
Usage: 0,
|
||||||
|
UsageLimit: -1,
|
||||||
|
Route: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user