pub fn init(config: &TelemetryConfig) -> Result<()>Expand description
Initializes the telemetry system.
This function sets up logging, and optionally metrics and tracing, based on the
provided TelemetryConfig. It supports both console and file-based
logging in either plain text or JSON format.
§Arguments
config- A reference to theTelemetryConfigcontaining telemetry settings.
§Returns
A Result indicating whether the initialization was successful.