Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: use public flush() + shutdown() instead of private _shutdown()

Devin AIcab04aa5b32d
diff --git a/backend/src/services/telemetry/telemetry-service.ts b/backend/src/services/telemetry/telemetry-service.ts
index db3b8757d0..6b896f065a 100644
--- a/backend/src/services/telemetry/telemetry-service.ts
+++ b/backend/src/services/telemetry/telemetry-service.ts
@@ -343,9 +343,8 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environme
const flushAll = async () => {
if (postHog) {
- // posthog-node v5: shutdown() is fire-and-forget (returns void).
- // Use _shutdown() to await flush completion during graceful shutdown.
- await postHog._shutdown();
+ await postHog.flush();
+ postHog.shutdown();
}
};