Skip to main content

Module setup

Module setup 

Source
Expand description

Subscriber setup — building and installing tracing subscribers. Subscriber setup — building and installing tracing subscribers.

This module owns everything that depends on the tracing ecosystem: init_logging and friends, the LoggingGuard, and the EnvFilter/output plumbing. It is gated behind the default-on setup feature so that consumers wanting only the configuration vocabulary (see crate::config) do not link tracing-subscriber.

Structs§

LoggingGuard
Opaque guard — drop to restore the previous tracing subscriber.
LoggingSetup
Options for init_logging_full.

Functions§

init_logging
Initialize structured logging from a LoggingConfig with default masking.
init_logging_env
Initialize logging from RUST_LOG only (no config struct needed).
init_logging_full
Enhanced logging init with all options including OTLP export.
init_logging_with_masking
Initialize logging with explicit masking configuration.
init_logging_with_options
Enhanced logging init with optional sampling, per-module levels, and masking.