Skip to content

Commit ae981dd

Browse files
committed
chore: add package version and CI to o11y
1 parent e76f0b4 commit ae981dd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ export default async function trackEvent(distinctId: string, event: string, prop
1414
await posthog.capture({
1515
distinctId,
1616
event,
17-
properties,
17+
properties: {
18+
...properties,
19+
meta: {
20+
version: process.env.npm_package_version,
21+
isCi: process.env.CI === "true",
22+
},
23+
},
1824
});
1925

2026
await posthog.shutdown();

0 commit comments

Comments
 (0)