Struct minitrace::collector::CollectArgs
source · [−]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
Returns the “default value” for a type. Read more