Skip to main content

init

Function init 

Source
pub async fn init(
    config: AnalyticsConfig,
) -> Result<EventCollector, AnalyticsError>
Expand description

Initialize the analytics module.

Returns an EventCollector that can be cloned and used across threads to record connection events.

ยงErrors

Returns an error if ClickHouse configuration is missing or connection fails.