Expand description

A tracing Layer for generating a trace that can be viewed by the Chrome Trace Viewer at chrome://tracing.

Usage

use tracing_chrome::ChromeLayerBuilder;
use tracing_subscriber::{registry::Registry, prelude::*};

let (chrome_layer, _guard) = ChromeLayerBuilder::new().build();
tracing_subscriber::registry().with(chrome_layer).init();

Structs

A Layer that writes a Chrome trace file.

This guard will signal the thread writing the trace file to stop and join it when dropped.

Enums

Represents either an Event or SpanRef.

Decides how traces will be recorded.