Skip to main content

operation_id

Function operation_id 

Source
pub fn operation_id() -> Option<OperationId>
Expand description

Allocate a fresh correlation identity, but only while a trace is enabled. Returns None (and allocates nothing) for disabled capture; pass the Option straight through to in_operation.