pub trait AggregateRepositoryExt<T>: Repository<T> + Sized
where T: Aggregate + Debug, <T as Aggregate>::Id: Debug, <T as Aggregate>::Event: Debug,
{ // Provided method fn with_tracing(self) -> InstrumentedAggregateRepository<T, Self> { ... } }
Expand description

Extension trait for any aggregate::Repository type to provide instrumentation features through the tracing crate.

Provided Methods§

source

fn with_tracing(self) -> InstrumentedAggregateRepository<T, Self>

Returns an instrumented version of the aggregate::Repository instance.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<R, T> AggregateRepositoryExt<T> for R
where R: Repository<T>, T: Aggregate + Debug, <T as Aggregate>::Id: Debug, <T as Aggregate>::Event: Debug,