mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: add feature flag for request counting inside Unleash (#6164)
## About the changes Adds the feature flag for use in request traffic counting
This commit is contained in:
parent
ecc200bf8a
commit
bb2f88980c
@ -79,6 +79,7 @@ exports[`should create default config 1`] = `
|
||||
"caseInsensitiveInOperators": false,
|
||||
"celebrateUnleash": false,
|
||||
"changeRequestConflictHandling": false,
|
||||
"collectTrafficDataUsage": false,
|
||||
"createdByUserIdDataMigration": false,
|
||||
"customRootRolesKillSwitch": false,
|
||||
"demo": false,
|
||||
|
@ -48,6 +48,7 @@ export type IFlagKey =
|
||||
| 'createdByUserIdDataMigration'
|
||||
| 'showInactiveUsers'
|
||||
| 'inMemoryScheduledChangeRequests'
|
||||
| 'collectTrafficDataUsage'
|
||||
| 'useMemoizedActiveTokens';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
@ -237,6 +238,10 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_IN_MEMORY_SCHEDULED_CHANGE_REQUESTS,
|
||||
false,
|
||||
),
|
||||
collectTrafficDataUsage: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_COLLECT_TRAFFIC_DATA_USAGE,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
Loading…
Reference in New Issue
Block a user