[−][src]Struct sc_tracing::ProfilingSubscriber
Responsible for assigning ids to new spans, which are not re-used.
Implementations
impl ProfilingSubscriber
[src]
pub fn new(receiver: TracingReceiver, targets: &str) -> ProfilingSubscriber
[src]
Takes a TracingReceiver
and a comma separated list of targets,
either with a level: "pallet=trace,frame=debug"
or without: "pallet,frame" 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
) -> ProfilingSubscriber
[src]
trace_handler: Box<dyn TraceHandler>,
targets: &str
) -> ProfilingSubscriber
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
Trait Implementations
impl Subscriber for ProfilingSubscriber
[src]
fn enabled(&self, metadata: &Metadata<'_>) -> bool
[src]
fn new_span(&self, attrs: &Attributes<'_>) -> Id
[src]
fn record(&self, span: &Id, values: &Record<'_>)
[src]
fn record_follows_from(&self, _span: &Id, _follows: &Id)
[src]
fn event(&self, event: &Event<'_>)
[src]
fn enter(&self, span: &Id)
[src]
fn exit(&self, span: &Id)
[src]
fn try_close(&self, span: Id) -> bool
[src]
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn max_level_hint(&self) -> Option<LevelFilter>
[src]
fn clone_span(&self, id: &Id) -> Id
[src]
fn drop_span(&self, _id: Id)
[src]
fn current_span(&self) -> Current
[src]
unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ProfilingSubscriber
impl Send for ProfilingSubscriber
impl Sync for ProfilingSubscriber
impl Unpin for ProfilingSubscriber
impl !UnwindSafe for ProfilingSubscriber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<S> SubscriberExt for S where
S: Subscriber,
[src]
S: Subscriber,
impl<T> SubscriberInitExt for T where
T: Into<Dispatch>,
[src]
T: Into<Dispatch>,
fn set_default(self) -> DefaultGuard
[src]
fn try_init(self) -> Result<(), TryInitError>
[src]
fn init(self)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,