macro_rules! context_key {
($name:ident, $type:ty) => { ... };
}Expand description
Macro for creating context keys
This macro creates a typed context key that can be used for type-safe context access.
ยงExample
use foundation_utils::context_key;
context_key!(USER_ID, String);
context_key!(REQUEST_ID, String);
context_key!(TRACE_ID, String);