pub struct ProjectionTrace {
pub trace_ctx: TraceCtx,
pub trace_id: Option<String>,
pub projection_id: String,
pub scope: ScopeKey,
pub action: ProjectionAction,
pub duration_ms: Option<u64>,
pub source_count: Option<usize>,
pub success: bool,
pub error: Option<String>,
pub resulting_health: ProjectionHealth,
pub stale_cause: Option<StaleCause>,
}Expand description
Observability record for a projection lifecycle action.
Fields§
§trace_ctx: TraceCtxCanonical trace context.
trace_id: Option<String>Phase status: compatibility / migration-only.
projection_id: StringWhich projection was affected.
scope: ScopeKeyScope of the projection.
action: ProjectionActionWhat action was taken.
duration_ms: Option<u64>Duration in milliseconds (for builds).
source_count: Option<usize>Number of source items processed (for builds).
success: boolWhether the action succeeded.
error: Option<String>Error message if action failed.
resulting_health: ProjectionHealthResulting health after the action.
stale_cause: Option<StaleCause>Stale cause if the projection is now stale.
Trait Implementations§
Source§impl Clone for ProjectionTrace
impl Clone for ProjectionTrace
Source§fn clone(&self) -> ProjectionTrace
fn clone(&self) -> ProjectionTrace
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 ProjectionTrace
impl Debug for ProjectionTrace
Source§impl<'de> Deserialize<'de> for ProjectionTrace
impl<'de> Deserialize<'de> for ProjectionTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectionTrace
impl RefUnwindSafe for ProjectionTrace
impl Send for ProjectionTrace
impl Sync for ProjectionTrace
impl Unpin for ProjectionTrace
impl UnsafeUnpin for ProjectionTrace
impl UnwindSafe for ProjectionTrace
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