pub struct RequestEvent {Show 18 fields
pub id: String,
pub ts: i64,
pub proxy: String,
pub session_id: Option<String>,
pub method: String,
pub path: String,
pub mcp_method: Option<String>,
pub tool: Option<String>,
pub status: u16,
pub latency_us: u64,
pub upstream_us: Option<u64>,
pub request_size: Option<u64>,
pub response_size: Option<u64>,
pub error_code: Option<String>,
pub error_msg: Option<String>,
pub client_name: Option<String>,
pub client_version: Option<String>,
pub note: String,
}Expand description
An MCP request that flowed through the proxy.
Fields§
§id: StringUnique event ID (UUIDv4).
ts: i64Unix milliseconds (UTC).
proxy: StringProxy name (from config or derived from upstream URL).
session_id: Option<String>MCP session ID (from mcp-session-id header).
method: StringHTTP method (POST, GET, DELETE).
path: StringRequest path.
mcp_method: Option<String>MCP JSON-RPC method (tools/call, resources/read, etc.).
tool: Option<String>Tool name for tools/call requests.
status: u16HTTP response status code.
latency_us: u64Wall-clock latency: proxy received request → sent response (μs).
upstream_us: Option<u64>Time spent waiting for upstream response (μs).
request_size: Option<u64>Request payload size in bytes.
response_size: Option<u64>Response payload size in bytes.
error_code: Option<String>MCP JSON-RPC error code (e.g., “-32600”) if the response was an error.
error_msg: Option<String>Error message (truncated to 512 chars).
client_name: Option<String>Client name from session clientInfo.name (e.g., “claude-desktop”).
client_version: Option<String>Client version from session clientInfo.version (e.g., “1.2.0”).
note: StringClassification note: “rewritten”, “passthrough”, “error”, “sse”, etc.
Trait Implementations§
Source§impl Clone for RequestEvent
impl Clone for RequestEvent
Source§fn clone(&self) -> RequestEvent
fn clone(&self) -> RequestEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more