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

Arguments for the collector.

Customize collection behavior through Span::root_with_args().

Implementations

A soft limit for the span collection in background, usually used to avoid out-of-memory.

Notice

Root span will always be collected. The eventually collected spans may exceed the limit.

Examples
use minitrace::prelude::*;

let args = CollectArgs::default().max_span_count(Some(100));
let (root, collector) = Span::root_with_args("root", args);

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.