Skip to content

Commit

Permalink
chore: remove the addonUsageMetrics flag (#8590)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek authored Oct 30, 2024
1 parent 095a825 commit a1c98c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
10 changes: 4 additions & 6 deletions src/lib/addons/addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ 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,
});
}
this.eventBus.emit(ADDON_EVENTS_HANDLED, {
result: integrationEvent.state,
destination: this.name,
});
}

destroy?(): void;
Expand Down
5 changes: 0 additions & 5 deletions src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export type IFlagKey =
| 'originMiddlewareRequestLogging'
| 'unleashAI'
| 'webhookDomainLogging'
| 'addonUsageMetrics'
| 'releasePlans'
| 'navigationSidebar'
| 'productivityReportEmail'
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ process.nextTick(async () => {
originMiddlewareRequestLogging: true,
unleashAI: true,
webhookDomainLogging: true,
addonUsageMetrics: true,
releasePlans: false,
simplifyProjectOverview: true,
},
Expand Down

0 comments on commit a1c98c4

Please sign in to comment.