Skip to content

Draft: lib: logger implementation for alerts and traces

Fabio Maschi requested to merge feat/logger-lib into main

To give more observability and escalate runtime problems to be followed up, this MR creates a "logger" library. Currently, the idea is to connect with GitLab Alerts #23, and AWS CloudWatch logs for the traces.

Still in progress, I want to make sure the library follows good NestJS patterns and is well integrated.

Summary by CodeRabbit

  • New Features

    • Introduced enhanced error handling with new custom exceptions for internal server errors and out-of-context exceptions.
    • Added a new LoggerLibrary for managing runtime incidents and escalating them to external monitoring platforms.
  • Bug Fixes

    • Improved error logging and event handling across multiple modules to ensure consistent and comprehensive error management.
  • Improvements

    • Enhanced the SingleSignOnService by removing redundant logging statements.
    • Updated various services to throw custom exceptions for better error traceability and handling.
  • Chores

    • Reorganized imports and updated module dependencies for cleaner and more maintainable code.
Edited by CodeRabbit

Merge request reports

Loading