Function wasmcloud_tracing::configure_tracing
source · pub fn configure_tracing(
_: &str,
_: &OtelConfig,
structured_logging_enabled: bool,
log_level_override: Option<&Level>
) -> Result<()>Expand description
Configures a global tracing subscriber, which includes:
- A level filter, which forms the base and applies to all other layers
- A local logging layer, which is either plaintext or structured (JSON)
§Errors
This will return an error if the function has already been called, or if we fail to create any of the layers