pub fn init(config: &LoggingConfig)Expand description
Initializes the global tracing subscriber with structured logging.
Reads RUST_LOG for filter directives; falls back to INFO-level logging with TRACE-level
for internal objectstore crates. Log format (pretty, simplified, or json) is determined
by config.format, defaulting to pretty when a terminal is attached.
When built with the sentry feature, also attaches Sentry tracing layers if the Sentry client
has been initialized:
ERROR..DEBUGspans become Sentry spans.TRACEspans are ignored.ERROR..DEBUGevents become Sentry logs.ERRORandWARNevents also become Sentry error events.TRACEevents are ignored.- Logs and error events include the attributes of their parent spans.