Skip to main content

record_command

Function record_command 

Source
pub fn record_command(command_id: &str, source: &str)
Expand description

One increment per command execution, tagged by command id and source"external" for commands arriving pre-serialized via CommandExecutorAdapter::execute_from_value (the funnel for both native-WS command dispatch and MCP HTTP/WS in-process tool calls), vs "internal" for commands composed in-process by another command handler or a saga via CommandContext::execute_command. This is a dispatch path distinction, not a transport one — it answers “did this arrive from outside the process or get called by server-side code composing commands,” which is what actually matters for load attribution.