Skip to content

📝 Feat: Structured Logging & Monitoring #90

@Cedarich

Description

@Cedarich

Title: feat(ops): integrate pino logger and sentry
Complexity Score: 150 points

Description
Replace standard console logs with structured JSON logging for better observability in production environments like ELK stack or Datadog.

Requirements and Context

  • Tech: nestjs-pino.
  • Features:
    • JSON output.
    • Automatic request logging (method, url, duration).
    • Request ID correlation (using nestjs-cls or similar).

Suggested Execution

  1. Install nestjs-pino and pino-http.
  2. Replace NestFactory.create logger in main.ts.
  3. Inject Logger in services and use this.logger.info({ context: ... }, 'message').

Test and Commit

  • Commit Message: feat(ops): integrate pino logger and sentry

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions