pub fn new_with_handler(trace_handler: Box<dyn TraceHandler>, targets: &str) -> Self {
		let targets: Vec<_> = targets.split(',').map(|s| parse_target(s)).collect();
		Self {
			targets,
			trace_handler,
			span_data: Mutex::new(FxHashMap::default()),
			current_span: Default::default(),
		}
	}
/// Allows use of a custom TraceHandler to create a new instance of ProfilingSubscriber.
/// Takes a comma separated list of targets,
/// either with a level, eg: "pallet=trace"
/// or without: "pallet" in which case the level defaults to `trace`.
/// wasm_tracing indicates whether to enable wasm traces
Allows use of a custom TraceHandler to create a new instance of ProfilingSubscriber.
Takes a comma separated list of targets,
either with a level, eg: "pallet=trace"
or without: "pallet" in which case the level defaults to `trace`.
wasm_tracing indicates whether to enable wasm traces
Allows use of a custom TraceHandler to create a new instance of ProfilingSubscriber . Takes a comma separated list of targets either with a level eg : " pallet = trace " or without : " pallet " in which case the level defaults to ` trace ` . wasm_tracing indicates whether to enable wasm traces
pub fn new_with_handler(trace_handler: Box<dyn TraceHandler>, targets: &str) -> Self {
		let targets: Vec<_> = targets.split(',').map(|s| parse_target(s)).collect();
		Self {
			targets,
			trace_handler,
			span_data: Mutex::new(FxHashMap::default()),
			current_span: Default::default(),
		}
	}
pub fn new_with_handler ( trace_handler : Box < dyn TraceHandler > , targets : & str ) -> Self { let targets : Vec < _ > = targets . split ( ',' ) . map ( | s | parse_target ( s ) ) . collect ( ) ; Self { targets , trace_handler , span_data : Mutex :: new ( FxHashMap :: default ( ) ) , current_span : Default :: default ( ) , } }
Allows use of a custom TraceHandler to create a new instance of ProfilingSubscriber.
Allows use of a custom TraceHandler to create a new instance of ProfilingSubscriber .
trace_handler
Box<dyn TraceHandler>
targets
&str
trace_handler
Box<dyn TraceHandler>
targets
&str