Skip to content

PostHogSink

Defined in: observability/src/analytics/posthog-sink.ts:18

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

new PostHogSink(config): PostHogSink

Defined in: observability/src/analytics/posthog-sink.ts:21

string

string

PostHogSink

capture(distinctId, event, props): void

Defined in: observability/src/analytics/posthog-sink.ts:31

Records the event for distinctId with the given props.

string

string

Record<string, unknown>

void

AnalyticsSink.capture


identify(distinctId, props): void

Defined in: observability/src/analytics/posthog-sink.ts:26

Associates props with the person identified by distinctId.

string

Record<string, unknown>

void

AnalyticsSink.identify


shutdown(): Promise<void>

Defined in: observability/src/analytics/posthog-sink.ts:36

Flushes queued events and closes the PostHog client.

Promise<void>

AnalyticsSink.shutdown