Is your feature request related to a problem? Please describe.
When using the platform through API endpoints, key actions such as document uploads, API key creation, assistant thread execution, and project/user activity are not consistently logged. This results in poor traceability and debugging friction, especially when issues are reported across projects or organizations.
Objective
Introduce structured, consistent, and contextual logging across all API routes to improve traceability, observability, and debugging.
What Needs to Be Done
- Audit each module for missing logs
- Add structured logs using
logger.info() and logger.error() at key points:
- Start and end of major operations
- Success and failure outcomes
- External API interactions
- Include contextual metadata:
project_id, organization_id
trace_id or user_id to track a request
- Request IDs or session IDs (if supported)
Is your feature request related to a problem? Please describe.
When using the platform through API endpoints, key actions such as document uploads, API key creation, assistant thread execution, and project/user activity are not consistently logged. This results in poor traceability and debugging friction, especially when issues are reported across projects or organizations.
Objective
Introduce structured, consistent, and contextual logging across all API routes to improve traceability, observability, and debugging.
What Needs to Be Done
logger.info()andlogger.error()at key points:project_id,organization_idtrace_idoruser_idto track a request