pub struct ErrorMetadataRecord { /* private fields */ }Expand description
One structured error observation at a runtime boundary.
Implementations§
Source§impl ErrorMetadataRecord
impl ErrorMetadataRecord
Sourcepub fn node_failed(context: &NodeContext, error: PureflowError) -> Self
pub fn node_failed(context: &NodeContext, error: PureflowError) -> Self
Create a node failure observation.
Sourcepub const fn workflow_failed(
workflow_id: WorkflowId,
execution: ExecutionMetadata,
error: PureflowError,
) -> Self
pub const fn workflow_failed( workflow_id: WorkflowId, execution: ExecutionMetadata, error: PureflowError, ) -> Self
Create a workflow failure observation.
Sourcepub const fn workflow_failed_with_diagnostic(
workflow_id: WorkflowId,
execution: ExecutionMetadata,
error: PureflowError,
diagnostic: ErrorDiagnosticMetadata,
) -> Self
pub const fn workflow_failed_with_diagnostic( workflow_id: WorkflowId, execution: ExecutionMetadata, error: PureflowError, diagnostic: ErrorDiagnosticMetadata, ) -> Self
Create a workflow failure observation with structured diagnostic data.
Sourcepub const fn kind(&self) -> ErrorMetadataKind
pub const fn kind(&self) -> ErrorMetadataKind
Error observation scope.
Sourcepub const fn workflow_id(&self) -> &WorkflowId
pub const fn workflow_id(&self) -> &WorkflowId
Workflow associated with this error.
Sourcepub const fn node_id(&self) -> Option<&NodeId>
pub const fn node_id(&self) -> Option<&NodeId>
Node associated with this error, when the error came from a node.
Sourcepub const fn execution(&self) -> &ExecutionMetadata
pub const fn execution(&self) -> &ExecutionMetadata
Execution attempt associated with this error.
Sourcepub const fn error(&self) -> &PureflowError
pub const fn error(&self) -> &PureflowError
Structured Pureflow error observed.
Sourcepub const fn diagnostic(&self) -> Option<&ErrorDiagnosticMetadata>
pub const fn diagnostic(&self) -> Option<&ErrorDiagnosticMetadata>
Structured diagnostic payload associated with this error, when present.
Trait Implementations§
Source§impl Clone for ErrorMetadataRecord
impl Clone for ErrorMetadataRecord
Source§fn clone(&self) -> ErrorMetadataRecord
fn clone(&self) -> ErrorMetadataRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorMetadataRecord
impl Debug for ErrorMetadataRecord
Source§impl PartialEq for ErrorMetadataRecord
impl PartialEq for ErrorMetadataRecord
Source§fn eq(&self, other: &ErrorMetadataRecord) -> bool
fn eq(&self, other: &ErrorMetadataRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ErrorMetadataRecord
impl StructuralPartialEq for ErrorMetadataRecord
Auto Trait Implementations§
impl Freeze for ErrorMetadataRecord
impl RefUnwindSafe for ErrorMetadataRecord
impl Send for ErrorMetadataRecord
impl Sync for ErrorMetadataRecord
impl Unpin for ErrorMetadataRecord
impl UnsafeUnpin for ErrorMetadataRecord
impl UnwindSafe for ErrorMetadataRecord
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).