pub struct HideTelemetryFilter;
Expand description
Filter to hide telemetry spans from regular application logs
Trait Implementations§
Source§impl Clone for HideTelemetryFilter
impl Clone for HideTelemetryFilter
Source§fn clone(&self) -> HideTelemetryFilter
fn clone(&self) -> HideTelemetryFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> Filter<S> for HideTelemetryFilter
impl<S> Filter<S> for HideTelemetryFilter
Source§fn enabled(&self, meta: &Metadata<'_>, _cx: &Context<'_, S>) -> bool
fn enabled(&self, meta: &Metadata<'_>, _cx: &Context<'_, S>) -> bool
Returns
true
if this layer is interested in a span or event with the
given Metadata
in the current Context
, similarly to
Subscriber::enabled
. Read moreSource§fn callsite_enabled(&self, meta: &'static Metadata<'static>) -> Interest
fn callsite_enabled(&self, meta: &'static Metadata<'static>) -> Interest
Source§fn event_enabled(&self, event: &Event<'_>, cx: &Context<'_, S>) -> bool
fn event_enabled(&self, event: &Event<'_>, cx: &Context<'_, S>) -> bool
Called before the filtered [
Layer]'s [
on_event], to determine if
on_event` should be called. Read moreSource§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Source§fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
Source§fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
Notifies this filter that a span with the given ID was entered. Read more
Auto Trait Implementations§
impl Freeze for HideTelemetryFilter
impl RefUnwindSafe for HideTelemetryFilter
impl Send for HideTelemetryFilter
impl Sync for HideTelemetryFilter
impl Unpin for HideTelemetryFilter
impl UnwindSafe for HideTelemetryFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more