Macro in_context
Source macro_rules! in_context {
($context:expr, $body:block) => { ... };
}
Expand description
Macro for running code within a context scope.
§Example
ⓘlet context = extract_from_headers(&headers);
in_context!(context, {
let span = span!("my_operation");
});