Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: contain telemetry rejections on the trial path
ArshBallagan3fde314a6769
diff --git a/backend/src/ee/routes/v1/license-v2-router.ts b/backend/src/ee/routes/v1/license-v2-router.tsindex 9744ebc1d9..e896952103 100644--- a/backend/src/ee/routes/v1/license-v2-router.ts+++ b/backend/src/ee/routes/v1/license-v2-router.ts@@ -560,16 +560,18 @@ export const registerLicenseV2Router = async (server: FastifyZodProvider) => {// file and the trial was NOT granted, so folding it into a "Trial Started" would overcount// trials. The actual grant for that branch happens on the License Server after the card-setup// checkout completes, which this service never observes, so neither event tracks conversion.- void server.services.telemetry.sendPostHogEvents({- event:- result.outcome === "trial_started" ? PostHogEventTypes.TrialStarted : PostHogEventTypes.TrialCardRequired,- distinctId: getTelemetryDistinctId(req),- organizationId: req.params.organizationId,- properties: {- productId: req.body.productId,- plan: req.body.plan- }- });+ void server.services.telemetry+ .sendPostHogEvents({+ event:+ result.outcome === "trial_started" ? PostHogEventTypes.TrialStarted : PostHogEventTypes.TrialCardRequired,+ distinctId: getTelemetryDistinctId(req),+ organizationId: req.params.organizationId,+ properties: {+ productId: req.body.productId,+ plan: req.body.plan+ }+ })+ .catch(() => {});return result;}