mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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, | ||||
|   "flagResolver": FlagResolver { | ||||
|     "experiments": { | ||||
|       "addonUsageMetrics": false, | ||||
|       "adminTokenKillSwitch": false, | ||||
|       "anonymiseEventLog": false, | ||||
|       "anonymizeProjectOwners": false, | ||||
| @ -153,6 +154,7 @@ exports[`should create default config 1`] = ` | ||||
|       "useMemoizedActiveTokens": false, | ||||
|       "useProjectReadModel": false, | ||||
|       "userAccessUIEnabled": false, | ||||
|       "webhookServiceNameLogging": false, | ||||
|     }, | ||||
|     "externalResolver": { | ||||
|       "getVariant": [Function], | ||||
|  | ||||
| @ -66,7 +66,9 @@ export type IFlagKey = | ||||
|     | 'changeRequestPlayground' | ||||
|     | 'archiveProjects' | ||||
|     | 'projectListImprovements' | ||||
|     | 'useProjectReadModel'; | ||||
|     | 'useProjectReadModel' | ||||
|     | 'webhookServiceNameLogging' | ||||
|     | 'addonUsageMetrics'; | ||||
| 
 | ||||
| export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; | ||||
| 
 | ||||
| @ -323,6 +325,14 @@ const flags: IFlags = { | ||||
|         process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL, | ||||
|         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 = { | ||||
|  | ||||
| @ -59,6 +59,8 @@ process.nextTick(async () => { | ||||
|                         changeRequestPlayground: true, | ||||
|                         projectListImprovements: true, | ||||
|                         useProjectReadModel: true, | ||||
|                         webhookServiceNameLogging: true, | ||||
|                         addonUsageMetrics: true, | ||||
|                     }, | ||||
|                 }, | ||||
|                 authentication: { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user