Skip to main content

init_sdk

Function init_sdk 

Source
pub fn init_sdk(
    log_level: Option<LogLevel>,
    flight_recorder_level: Option<LogLevel>,
    flight_recorder_buffer_size: Option<usize>,
)
Expand description

Initialize the SDK. Must be called before using any other API. Only the first invocation has effect; subsequent calls are ignored.

  • log_level: Minimum level for console output. Defaults to Info.
  • flight_recorder_level: Minimum level for the flight recorder. Defaults to Info.
  • flight_recorder_buffer_size: Ring-buffer capacity for the flight recorder. Defaults to 1000. Pass 0 to disable the flight recorder entirely.