Skip to main content

register_tenant_capture_hook

Function register_tenant_capture_hook 

Source
pub fn register_tenant_capture_hook(f: fn() -> Option<i64>)
Expand description

Register the tenant capture hook.

Called once during application bootstrap. Re-registration is silently ignored. The hook is invoked at dispatch time to capture the current tenant ID from task-local storage without requiring a direct dependency on the framework crate.