Skip to content

Platform-wide Logging Review and Standardization #213

@AkhileshNegi

Description

@AkhileshNegi

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

  1. Audit each module for missing logs
  2. 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
  3. Include contextual metadata:
    • project_id, organization_id
    • trace_id or user_id to track a request
    • Request IDs or session IDs (if supported)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions