pub struct IncidentInput {
pub kind: String,
pub source_file: String,
pub route_pattern: Option<String>,
pub status_code: Option<i64>,
pub error_message: String,
pub detail: Option<String>,
pub context_json: Value,
pub git_sha: Option<String>,
pub custom_fingerprint: Option<String>,
}Expand description
Input payload for recording a deduplicated runtime incident in slabs_incidents.
Fields§
§kind: StringIncident category (for example "panic", "http_5xx", "slow_request", "job_dead", "slow_job", "client_error", or "user_bug_report").
source_file: StringSource file owning the failing or slow code path.
route_pattern: Option<String>Optional matched HTTP route pattern or path.
status_code: Option<i64>Optional HTTP status code.
error_message: StringError or bottleneck summary (truncated to 1024 UTF-8 bytes on persistence).
detail: Option<String>Optional extended diagnostic detail (truncated to 4096 UTF-8 bytes on persistence).
context_json: ValueRedacted structured JSON context attached to the incident.
git_sha: Option<String>Optional Git commit SHA active when the incident occurred.
custom_fingerprint: Option<String>Optional explicit deduplication fingerprint override.
When None, the fingerprint is derived deterministically from (kind, source_file, route_pattern, error_message) — except for "user_bug_report", which includes a unique
nonce so each user bug report creates a distinct open record unless explicitly fingerprinted.
Trait Implementations§
Source§impl Clone for IncidentInput
impl Clone for IncidentInput
Auto Trait Implementations§
impl Forget for IncidentInput
impl Freeze for IncidentInputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for IncidentInput
impl RefUnwindSafe for IncidentInput
impl Send for IncidentInput
impl Sync for IncidentInput
impl Unpin for IncidentInput
impl UnsafeUnpin for IncidentInputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for IncidentInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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