PostHog.Supervisor (posthog v2.9.1)

View Source

Supervisor 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

child_spec(init_arg)

@spec child_spec(PostHog.Config.config()) :: Supervisor.child_spec()

Returns a child specification for a PostHog supervision tree.

Parameters

Returns

A Supervisor.child_spec/0 that can be included in your application's children list.

start_link(config)

@spec start_link(PostHog.Config.config()) :: Supervisor.on_start()

Starts a PostHog supervision tree from a validated config.

Parameters

Returns

Returns the standard Supervisor.on_start/0 tuple.