1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00

chore: add lifecycleMetrics flag definition (#10033)

Adds the new lifecycleMetrics flag.
This commit is contained in:
Thomas Heartman 2025-05-27 12:53:22 +01:00 committed by GitHub
parent 290ef6ca40
commit 092c525531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,7 @@ export type UiFlags = {
featureLinks?: boolean;
projectLinkTemplates?: boolean;
customMetrics?: boolean;
lifecycleMetrics?: boolean;
};
export interface IVersionInfo {

View File

@ -65,6 +65,7 @@ export type IFlagKey =
| 'reportUnknownFlags'
| 'lastSeenBulkQuery'
| 'newGettingStartedEmail'
| 'lifecycleMetrics'
| 'customMetrics';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -307,6 +308,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_NEW_GETTING_STARTED_EMAIL,
false,
),
lifecycleMetrics: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_LIFECYCLE_METRICS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -58,6 +58,7 @@ process.nextTick(async () => {
projectLinkTemplates: true,
reportUnknownFlags: true,
customMetrics: true,
lifecycleMetrics: true,
},
},
authentication: {