Skip to content

Implement structured logging, error alerting, and fix TypeScript test…#70

Merged
LaGodxy merged 2 commits into
MettaChain:mainfrom
Cedarich:feature/structured-logging-monitoring
Feb 23, 2026
Merged

Implement structured logging, error alerting, and fix TypeScript test…#70
LaGodxy merged 2 commits into
MettaChain:mainfrom
Cedarich:feature/structured-logging-monitoring

Conversation

@Cedarich
Copy link
Copy Markdown
Contributor

@Cedarich Cedarich commented Feb 22, 2026

Closes #44


Changes:

  • Wire StructuredLoggerService into Nest bootstrap and PrismaService
  • Enhance global error filter with correlation IDs and error alert webhook
  • Add structured response and database logging with correlation metadata
  • Update logging config (rotation, redaction, retention policies)
  • Fix strict property initialization for document and API key DTOs
  • Clean up custom validators and their specs to satisfy strict TS settings
  • Remove stale Prisma enum usages in properties.service.spec and use string statuses
  • Fix test DTO specs to be strict-null-safe (non-null assertions where appropriate)
  • Ensure npm run test:unit passes with no TypeScript diagnostics

Verification:

  • npm run test:unit
  • TypeScript diagnostics: no remaining errors in src/ or test/

closes issues #10

@Cedarich
Copy link
Copy Markdown
Contributor Author

please approve workflow @LaGodxy

@LaGodxy
Copy link
Copy Markdown
Contributor

LaGodxy commented Feb 23, 2026

@Cedarich please fix CI

@LaGodxy LaGodxy merged commit a03e461 into MettaChain:main Feb 23, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Comprehensive Logging and Monitoring

3 participants