Function build

Source
pub fn build(
    log_name: &str,
    writer: impl Write + Send + 'static,
) -> (impl Subscriber + Send + Sync, ChromeTraceGuard)
Expand description

Builds a Chrome trace layer and guard.

Returns a subscriber and guard. The subscriber should be used with with_default to avoid global state conflicts.