Skip to main content

current_request_id

Function current_request_id 

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

The x-request-id installed by with_request_id, if any.

Returns None outside the task that with_request_id wraps — see its docs for the tokio::spawn / spawn_blocking / streamed-body limitation.