Skip to main content

with_request_context

Function with_request_context 

Source
pub fn with_request_context<F, R>(
    request_id: &str,
    user_id: Option<&str>,
    session_id: Option<&str>,
    f: F,
) -> R
where F: FnOnce() -> R,
Expand description

Execute a closure with request context, automatically clearing when done