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; the underlying request_logs table does not yet carry customer_id / project_id columns, so the physical isolation today is user_id-based -- a customer's users only see their own rows. Adding customer_id / project_id columns to request_logs in a future migration will let the handler tighten the filter to a true WHERE customer_id = $1 AND project_id = $2 without breaking the wire contract.