MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / createPostHogClient

Function createPostHogClient

packages/web/src/lib/posthog.ts:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72export const createPostHogClient = async () => {
73 const posthog = new PostHog(env.POSTHOG_PAPIK, {
74 host: 'https://us.i.posthog.com',
75 flushAt: 1,
76 flushInterval: 0
77 });
78
79 return posthog;
80}
81
82export async function captureEvent<E extends PosthogEvent>(event: E, properties: PosthogEventMap[E]) {
83 try {

Callers 2

captureEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected