Skip to main content

set_request_context_scoped

Function set_request_context_scoped 

Source
pub fn set_request_context_scoped(
    request_id: &str,
    user_id: Option<&str>,
    session_id: Option<&str>,
) -> RequestContextGuard
Expand description

Set request context with RAII guard

Returns a guard that will automatically clear the context when dropped.