[][src]Crate tracing_chrome

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

ChromeLayer
ChromeLayerBuilder
FlushGuard

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

Enums

EventOrSpan
TraceStyle

Decides how traces will be recorded.