mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: remove debug metrics flag (#7348)
This commit is contained in:
parent
76c8cbad0c
commit
44ca447fd2
@ -83,7 +83,6 @@ exports[`should create default config 1`] = `
|
|||||||
"collectTrafficDataUsage": false,
|
"collectTrafficDataUsage": false,
|
||||||
"commandBarUI": false,
|
"commandBarUI": false,
|
||||||
"createProjectWithEnvironmentConfig": false,
|
"createProjectWithEnvironmentConfig": false,
|
||||||
"debugMetrics": false,
|
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
"disableMetrics": false,
|
"disableMetrics": false,
|
||||||
|
@ -141,10 +141,6 @@ export default class ClientMetricsServiceV2 {
|
|||||||
data: ClientMetricsSchema,
|
data: ClientMetricsSchema,
|
||||||
clientIp: string,
|
clientIp: string,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (this.flagResolver.isEnabled('debugMetrics')) {
|
|
||||||
this.logger.debug(`Metrics received: ${JSON.stringify(data)}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const value = await clientMetricsSchema.validateAsync(data);
|
const value = await clientMetricsSchema.validateAsync(data);
|
||||||
const toggleNames = Object.keys(value.bucket.toggles).filter(
|
const toggleNames = Object.keys(value.bucket.toggles).filter(
|
||||||
(name) =>
|
(name) =>
|
||||||
|
@ -60,7 +60,6 @@ export type IFlagKey =
|
|||||||
| 'manyStrategiesPagination'
|
| 'manyStrategiesPagination'
|
||||||
| 'newCreateProjectUI'
|
| 'newCreateProjectUI'
|
||||||
| 'enableLegacyVariants'
|
| 'enableLegacyVariants'
|
||||||
| 'debugMetrics'
|
|
||||||
| 'navigationSidebar'
|
| 'navigationSidebar'
|
||||||
| 'commandBarUI'
|
| 'commandBarUI'
|
||||||
| 'flagCreator';
|
| 'flagCreator';
|
||||||
@ -288,10 +287,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_ENABLE_LEGACY_VARIANTS,
|
process.env.UNLEASH_EXPERIMENTAL_ENABLE_LEGACY_VARIANTS,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
debugMetrics: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_DEBUG_METRICS,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
navigationSidebar: parseEnvVarBoolean(
|
navigationSidebar: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
|
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
|
||||||
true,
|
true,
|
||||||
|
Loading…
Reference in New Issue
Block a user