Skip to content

AnalyticsSink

Defined in: observability/src/core/sinks.ts:36

Product analytics — usage, adoption, retention (PostHog).

capture(distinctId, event, props): void

Defined in: observability/src/core/sinks.ts:40

Records the event for distinctId with the given props.

string

string

Record<string, unknown>

void


identify(distinctId, props): void

Defined in: observability/src/core/sinks.ts:38

Associates props with the person identified by distinctId.

string

Record<string, unknown>

void


shutdown(): Promise<void>

Defined in: observability/src/core/sinks.ts:42

Flushes queued events and shuts the client down.

Promise<void>