AnalyticsSink
Defined in: observability/src/core/sinks.ts:36
Product analytics — usage, adoption, retention (PostHog).
Methods
Section titled “Methods”capture()
Section titled “capture()”capture(
distinctId,event,props):void
Defined in: observability/src/core/sinks.ts:40
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
identify()
Section titled “identify()”identify(
distinctId,props):void
Defined in: observability/src/core/sinks.ts:38
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
shutdown()
Section titled “shutdown()”shutdown():
Promise<void>
Defined in: observability/src/core/sinks.ts:42
Flushes queued events and shuts the client down.
Returns
Section titled “Returns”Promise<void>