Skip to main content

NoopTracer

Struct NoopTracer 

Source
pub struct NoopTracer;
Expand description

Zero-cost tracer that discards all events.

This is the default tracer for QueryRuntime.

Trait Implementations§

Source§

impl Tracer for NoopTracer

Source§

fn new_span_id(&self) -> SpanId

Generate a new unique span ID. Read more
Source§

fn new_trace_id(&self) -> TraceId

Generate a new unique trace ID. Read more
Source§

fn on_query_start(&self, _ctx: &SpanContext, _query: &QueryCacheKey)

Called when a query execution starts. Read more
Source§

fn on_cache_check( &self, _ctx: &SpanContext, _query: &QueryCacheKey, _valid: bool, )

Called when cache validity is checked.
Source§

fn on_query_end( &self, _ctx: &SpanContext, _query: &QueryCacheKey, _result: ExecutionResult, )

Called when a query execution ends.
Source§

fn on_dependency_registered( &self, _ctx: &SpanContext, _parent: &FullCacheKey, _dependency: &FullCacheKey, )

Called when a query dependency is registered during execution.
Source§

fn on_asset_dependency_registered( &self, _ctx: &SpanContext, _parent: &FullCacheKey, _asset: &FullCacheKey, )

Called when an asset dependency is registered during execution.
Source§

fn on_early_cutoff_check( &self, _ctx: &SpanContext, _query: &QueryCacheKey, _output_changed: bool, )

Called when early cutoff comparison is performed.
Source§

fn on_asset_requested(&self, _ctx: &SpanContext, _asset: &AssetCacheKey)

Called when an asset is requested (START event). Read more
Source§

fn on_asset_located( &self, _ctx: &SpanContext, _asset: &AssetCacheKey, _state: TracerAssetState, )

Called when an asset locator finishes execution. Read more
Source§

fn on_asset_resolved(&self, _asset: &AssetCacheKey, _changed: bool)

Called when an asset is resolved with a value.
Source§

fn on_asset_invalidated(&self, _asset: &AssetCacheKey)

Called when an asset is invalidated.
Source§

fn on_query_invalidated( &self, _query: &QueryCacheKey, _reason: InvalidationReason, )

Called when a query is invalidated.
Source§

fn on_cycle_detected(&self, _path: &[FullCacheKey])

Called when a dependency cycle is detected. Read more
Source§

fn on_query_key(&self, _full_key: &FullCacheKey)

Called when a query is accessed, providing the FullCacheKey for GC tracking. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.