pub struct CallTreeCollectorBuilder { /* private fields */ }
Expand description

Configure & Build CallTreeCollectors.

Example:

use reqray::{CallTreeCollectorBuilder, display::LoggingCallTreeCollectorBuilder};

let collector =
    CallTreeCollectorBuilder::default()
        .max_call_depth(42)
        .build_with_collector(
             LoggingCallTreeCollectorBuilder::default()
                 .left_margin(20)
                 .build()
        );

Implementations

The clock to use for measure execution time.

The default is to use a real clock, but you can pass in a mock clock for testing.

The maximum call depth of the call tree to record – must be at least 2.

Call paths below this depth are capped – so their execution is recorded as if they were inlined.

Build the CallTreeCollector handing over the finished call trees to collector.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more