PostHogSink
Defined in: observability/src/analytics/posthog-sink.ts:18
Product analytics — usage, adoption, retention (PostHog).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PostHogSink(
config):PostHogSink
Defined in: observability/src/analytics/posthog-sink.ts:21
Parameters
Section titled “Parameters”config
Section titled “config”string
string
Returns
Section titled “Returns”PostHogSink
Methods
Section titled “Methods”capture()
Section titled “capture()”capture(
distinctId,event,props):void
Defined in: observability/src/analytics/posthog-sink.ts:31
Records the event for distinctId with the given props.
Parameters
Section titled “Parameters”distinctId
Section titled “distinctId”string
string
Record<string, unknown>
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”identify()
Section titled “identify()”identify(
distinctId,props):void
Defined in: observability/src/analytics/posthog-sink.ts:26
Associates props with the person identified by distinctId.
Parameters
Section titled “Parameters”distinctId
Section titled “distinctId”string
Record<string, unknown>
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”shutdown()
Section titled “shutdown()”shutdown():
Promise<void>
Defined in: observability/src/analytics/posthog-sink.ts:36
Flushes queued events and closes the PostHog client.
Returns
Section titled “Returns”Promise<void>