Skip to main content

current_request_id

Function current_request_id 

Source
pub fn current_request_id() -> Option<String>
Expand description

Request id for the current async task (set by request_id middleware).

Plugins (store / redis / tasks) can attach this to tracing events so DevTools correlates them with the open request bag.