Skip to main content

Module Initialize

Module Initialize 

Source
Expand description

Bring up the global PostHog client and emit mountain:session:start. Must be called once during boot; re-entrancy is safe because the underlying OnceLock::set returns Err on subsequent attempts.

Note: posthog-rs 0.5 renamed api_endpointhost on ClientOptionsBuilder to match the JS/Python SDK vocabulary; keep host(...) here.

Functions§

Fn