Skip to content

Implement API Request/Response Logging Middleware #217

@Baskarayelu

Description

@Baskarayelu

Description:

Add structured request/response logging for all API routes so ops can debug issues and analyze usage without logging sensitive payloads.

Requirements

  • Log for each request: method, path, statusCode, durationMs, requestId (if present)
  • Do not log full request body (e.g. passwords, signatures); optionally log sanitized fields (e.g. address prefix)
  • Use structured format (JSON) to stdout for log aggregation
  • Optional: log response body size only (no content) for large payloads
  • Document log format and how to correlate via requestId

Acceptance Criteria

  • Logging middleware applied to /api routes
  • No secrets or full bodies in logs
  • Log format documented

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions