pub struct MetricsAspect { /* private fields */ }Expand description
Implementations§
Source§impl MetricsAspect
impl MetricsAspect
Sourcepub fn get_histogram(&self, function_name: &str) -> Vec<Duration>
pub fn get_histogram(&self, function_name: &str) -> Vec<Duration>
Get duration histogram for a function.
Trait Implementations§
Source§impl Aspect for MetricsAspect
impl Aspect for MetricsAspect
Source§fn around(
&self,
pjp: ProceedingJoinPoint<'_>,
) -> Result<Box<dyn Any>, AspectError>
fn around( &self, pjp: ProceedingJoinPoint<'_>, ) -> Result<Box<dyn Any>, AspectError>
Advice that wraps the entire target function execution. Read more
Source§fn after(&self, _ctx: &JoinPoint, _result: &(dyn Any + 'static))
fn after(&self, _ctx: &JoinPoint, _result: &(dyn Any + 'static))
Advice executed after the target function completes successfully. Read more
Source§fn after_error(&self, _ctx: &JoinPoint, _error: &AspectError)
fn after_error(&self, _ctx: &JoinPoint, _error: &AspectError)
Advice executed when the target function encounters an error. Read more
Source§impl Clone for MetricsAspect
impl Clone for MetricsAspect
Source§fn clone(&self) -> MetricsAspect
fn clone(&self) -> MetricsAspect
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 moreAuto Trait Implementations§
impl Freeze for MetricsAspect
impl !RefUnwindSafe for MetricsAspect
impl Send for MetricsAspect
impl Sync for MetricsAspect
impl Unpin for MetricsAspect
impl UnsafeUnpin for MetricsAspect
impl !UnwindSafe for MetricsAspect
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