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

Function captureEvent

packages/web/src/hooks/useCaptureEvent.ts:7–13  ·  view source on GitHub ↗
(event: E, properties: PosthogEventMap[E], options?: CaptureOptions)

Source from the content-addressed store, hash-verified

5import { PosthogEvent, PosthogEventMap } from "../lib/posthogEvents";
6
7export function captureEvent<E extends PosthogEvent>(event: E, properties: PosthogEventMap[E], options?: CaptureOptions) {
8 if(!options) {
9 options = {};
10 }
11 options.send_instantly = true;
12 posthog.capture(event, properties, options);
13}
14
15/**
16 * Captures a distinct action as a event and forwards it to the event service

Callers 9

PostHogPageViewFunction · 0.90
GitHubStarToastFunction · 0.90
ChatHistoryFunction · 0.90
ShareSettingsFunction · 0.90
ShareChatPopoverFunction · 0.90
ChatRowActionsFunction · 0.90
SignInPromptBannerFunction · 0.90
handleDismissFunction · 0.90
handleSignInClickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected