Skip to content

Commit a5bd78c

Browse files
committed
chore: upd observability params
1 parent d5a04dc commit a5bd78c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli/src/cli/utils/observability.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ export default async function trackEvent(distinctId: string, event: string, prop
77

88
const posthog = new PostHog("phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk", {
99
host: "https://eu.i.posthog.com",
10+
flushAt: 1,
11+
flushInterval: 0,
1012
});
1113

1214
await posthog.capture({
1315
distinctId,
1416
event,
1517
properties,
1618
});
19+
20+
await posthog.shutdown();
1721
}

0 commit comments

Comments
 (0)