pub struct JobObservationEvent {
pub at: DateTime<Utc>,
pub job_id: Uuid,
pub attempt: Option<i32>,
pub worker_id: Option<String>,
pub queue: String,
pub duration_ms: Option<i32>,
pub status: String,
pub retry_count: i32,
pub error: Option<String>,
pub trace_id: Option<String>,
}Fields§
§at: DateTime<Utc>§job_id: Uuid§attempt: Option<i32>§worker_id: Option<String>§queue: String§duration_ms: Option<i32>§status: String§retry_count: i32§error: Option<String>§trace_id: Option<String>Implementations§
Source§impl JobObservationEvent
impl JobObservationEvent
Sourcepub fn span_attributes(&self) -> BTreeMap<&'static str, String>
pub fn span_attributes(&self) -> BTreeMap<&'static str, String>
Returns OpenTelemetry-compatible span attributes for this job lifecycle observation.
Trait Implementations§
Source§impl Clone for JobObservationEvent
impl Clone for JobObservationEvent
Source§fn clone(&self) -> JobObservationEvent
fn clone(&self) -> JobObservationEvent
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 JobObservationEvent
impl Debug for JobObservationEvent
Source§impl<'de> Deserialize<'de> for JobObservationEvent
impl<'de> Deserialize<'de> for JobObservationEvent
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 JobObservationEvent
impl RefUnwindSafe for JobObservationEvent
impl Send for JobObservationEvent
impl Sync for JobObservationEvent
impl Unpin for JobObservationEvent
impl UnsafeUnpin for JobObservationEvent
impl UnwindSafe for JobObservationEvent
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