pub struct WorkflowTracer { /* private fields */ }Expand description
Workflow tracer
Implementations§
Source§impl WorkflowTracer
impl WorkflowTracer
Sourcepub fn with_max_completed(max: usize) -> Self
pub fn with_max_completed(max: usize) -> Self
Create with custom limit
Sourcepub fn record_step(&self, workflow_id: &str, execution: &QueryExecution)
pub fn record_step(&self, workflow_id: &str, execution: &QueryExecution)
Record workflow step
Sourcepub fn complete_workflow(&self, workflow_id: &str)
pub fn complete_workflow(&self, workflow_id: &str)
Complete workflow
Sourcepub fn get_workflow(&self, workflow_id: &str) -> Option<WorkflowTrace>
pub fn get_workflow(&self, workflow_id: &str) -> Option<WorkflowTrace>
Get active workflow
Sourcepub fn recent(&self, limit: usize) -> Vec<WorkflowTrace>
pub fn recent(&self, limit: usize) -> Vec<WorkflowTrace>
Get recent completed workflows
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Get active workflow count
Sourcepub fn total_count(&self) -> u64
pub fn total_count(&self) -> u64
Get total workflow count
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WorkflowTracer
impl !RefUnwindSafe for WorkflowTracer
impl Send for WorkflowTracer
impl Sync for WorkflowTracer
impl Unpin for WorkflowTracer
impl UnsafeUnpin for WorkflowTracer
impl UnwindSafe for WorkflowTracer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more