Skip to main content

agentrouter.insights.v1.CustomerRequestLogsService

CustomerRequestLogsService is the customer-facing read surface over request_logs. Identical wire shape to RequestLogsService but the handler resolves the calling user via the identitysvc.Authenticator (the same path the inference handler uses) and enforces user_id = caller.UserID on every list/get. The customer_id / project_id flags identify the tenancy scope the caller is querying against, and that resolved scope also restricts the rows: request_logs does not carry tenancy columns directly, so list, get, and stats scope through the recording API key (request_logs.api_key_id -> api_keys' customer_id/project_id). A caller therefore sees only their own rows, and only those recorded by keys of the resolved (customer, project).