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

chore: remove the addonUsageMetrics flag (#8590)

This commit is contained in:
David Leek 2024-10-30 11:44:26 +01:00 committed by GitHub
parent 095a82569c
commit a1c98c4400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 12 deletions

View File

@ -94,13 +94,11 @@ export default abstract class Addon {
integrationEvent: IntegrationEventWriteModel,
): Promise<void> {
await this.integrationEventsService.registerEvent(integrationEvent);
if (this.flagResolver.isEnabled('addonUsageMetrics')) {
this.eventBus.emit(ADDON_EVENTS_HANDLED, {
result: integrationEvent.state,
destination: this.name,
});
}
}
destroy?(): void;
}

View File

@ -57,7 +57,6 @@ export type IFlagKey =
| 'originMiddlewareRequestLogging'
| 'unleashAI'
| 'webhookDomainLogging'
| 'addonUsageMetrics'
| 'releasePlans'
| 'navigationSidebar'
| 'productivityReportEmail'
@ -286,10 +285,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENT_WEBHOOK_DOMAIN_LOGGING,
false,
),
addonUsageMetrics: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS,
false,
),
releasePlans: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_RELEASE_PLANS,
false,

View File

@ -55,7 +55,6 @@ process.nextTick(async () => {
originMiddlewareRequestLogging: true,
unleashAI: true,
webhookDomainLogging: true,
addonUsageMetrics: true,
releasePlans: false,
simplifyProjectOverview: true,
},