PostHog.Supervisor (posthog v2.9.1)
View SourceSupervisor that manages the processes required for PostHog event capture.
By default, PostHog starts this supervisor automatically from the :posthog
application configuration. Start it yourself when you need a custom supervision
tree or multiple PostHog instances.
Summary
Functions
Returns a child specification for a PostHog supervision tree.
Starts a PostHog supervision tree from a validated config.
Functions
@spec child_spec(PostHog.Config.config()) :: Supervisor.child_spec()
Returns a child specification for a PostHog supervision tree.
Parameters
config- validatedPostHog.Config.config/0for the instance.
Returns
A Supervisor.child_spec/0 that can be included in your application's
children list.
@spec start_link(PostHog.Config.config()) :: Supervisor.on_start()
Starts a PostHog supervision tree from a validated config.
Parameters
config- validatedPostHog.Config.config/0. UsePostHog.Config.validate!/1before calling this function with raw options.
Returns
Returns the standard Supervisor.on_start/0 tuple.