mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
feat: feature flags for metrics and service name logging (#7916)
This commit is contained in:
parent
2050cb0b76
commit
205aeb5265
@ -72,6 +72,7 @@ exports[`should create default config 1`] = `
|
|||||||
"feedbackUriPath": undefined,
|
"feedbackUriPath": undefined,
|
||||||
"flagResolver": FlagResolver {
|
"flagResolver": FlagResolver {
|
||||||
"experiments": {
|
"experiments": {
|
||||||
|
"addonUsageMetrics": false,
|
||||||
"adminTokenKillSwitch": false,
|
"adminTokenKillSwitch": false,
|
||||||
"anonymiseEventLog": false,
|
"anonymiseEventLog": false,
|
||||||
"anonymizeProjectOwners": false,
|
"anonymizeProjectOwners": false,
|
||||||
@ -153,6 +154,7 @@ exports[`should create default config 1`] = `
|
|||||||
"useMemoizedActiveTokens": false,
|
"useMemoizedActiveTokens": false,
|
||||||
"useProjectReadModel": false,
|
"useProjectReadModel": false,
|
||||||
"userAccessUIEnabled": false,
|
"userAccessUIEnabled": false,
|
||||||
|
"webhookServiceNameLogging": false,
|
||||||
},
|
},
|
||||||
"externalResolver": {
|
"externalResolver": {
|
||||||
"getVariant": [Function],
|
"getVariant": [Function],
|
||||||
|
@ -66,7 +66,9 @@ export type IFlagKey =
|
|||||||
| 'changeRequestPlayground'
|
| 'changeRequestPlayground'
|
||||||
| 'archiveProjects'
|
| 'archiveProjects'
|
||||||
| 'projectListImprovements'
|
| 'projectListImprovements'
|
||||||
| 'useProjectReadModel';
|
| 'useProjectReadModel'
|
||||||
|
| 'webhookServiceNameLogging'
|
||||||
|
| 'addonUsageMetrics';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -323,6 +325,14 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL,
|
process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
webhookServiceNameLogging: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_WEBHOOK_SERVICE_NAME_LOGGING,
|
||||||
|
false,
|
||||||
|
),
|
||||||
|
addonUsageMetrics: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -59,6 +59,8 @@ process.nextTick(async () => {
|
|||||||
changeRequestPlayground: true,
|
changeRequestPlayground: true,
|
||||||
projectListImprovements: true,
|
projectListImprovements: true,
|
||||||
useProjectReadModel: true,
|
useProjectReadModel: true,
|
||||||
|
webhookServiceNameLogging: true,
|
||||||
|
addonUsageMetrics: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user