pub struct CorrelationContext {
    pub correlation_id: String,
    pub request_id: String,
    pub parent_request_id: Option<String>,
    pub trace_id: Option<String>,
    pub span_id: Option<String>,
    pub user_id: Option<String>,
    pub session_id: Option<String>,
    pub originating_service: String,
    pub current_service: String,
    pub start_time: DateTime<Utc>,
    pub request_path: Vec<String>,
    pub custom_fields: HashMap<String, String>,
}Expand description
Request correlation context
Fields§
§correlation_id: StringPrimary correlation ID for the entire request chain
request_id: StringRequest ID for this specific request
parent_request_id: Option<String>Parent request ID (if this is a sub-request)
trace_id: Option<String>Trace ID for OpenTelemetry compatibility
span_id: Option<String>Span ID for OpenTelemetry compatibility
user_id: Option<String>User ID associated with the request
session_id: Option<String>Session ID
originating_service: StringService name that initiated the request
current_service: StringCurrent service processing the request
start_time: DateTime<Utc>Request start time
request_path: Vec<String>Request path/breadcrumb
custom_fields: HashMap<String, String>Custom context fields
Trait Implementations§
Source§impl Clone for CorrelationContext
 
impl Clone for CorrelationContext
Source§fn clone(&self) -> CorrelationContext
 
fn clone(&self) -> CorrelationContext
Returns a duplicate of the value. Read more
1.0.0 · 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 CorrelationContext
 
impl Debug for CorrelationContext
Source§impl<'de> Deserialize<'de> for CorrelationContext
 
impl<'de> Deserialize<'de> for CorrelationContext
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 CorrelationContext
impl RefUnwindSafe for CorrelationContext
impl Send for CorrelationContext
impl Sync for CorrelationContext
impl Unpin for CorrelationContext
impl UnwindSafe for CorrelationContext
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