Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

telexintegrations/code-error-microservice

Repository files navigation

Code Error Microservice

A real-time error monitoring and reporting service that integrates with Telex channels, providing prioritized error classification and automated notifications.

🎯 Overview

This microservice monitors your codebase for errors, processes them through a message queue system, and delivers prioritized notifications to your Telex channels. It supports real-time monitoring and configurable error thresholds.

Core Components

  • Error Controller: Entry point for error processing
  • Categorization Service: Analyzes and classifies errors
  • ZeroMQ Service: Handles message queuing and distribution
  • Webhook Service: Manages Telex channel communication

🎯 Features

  • Error Detection

    • Real-time monitoring
    • Static code analysis (ESLint)
    • Stack trace processing
  • Error Processing

    • Automatic categorization
    • Priority classification
    • Error enrichment
  • Notification System

    • Real-time Telex updates
    • Configurable webhooks

πŸš€ Getting Started

Prerequisites

  • Node.js 20.x
  • npm 9.x
  • ZeroMQ library

Quick Start

# Clone repository
git clone https://github.com/telexintegrations/code-error-microservice
# Install dependencies
npm install
# Setup environment
cp .env.example .env
# Start development server
npm run dev

🏷️ Error Classification

Severity Description Example
🚨 High System critical Service crash, DB connection failure
πŸ”” Medium Functional issues API timeout, validation errors
i️ Low Minor problems Deprecation warnings, style issues

πŸ› οΈ Project Structure

src/
β”œβ”€β”€ controllers/ # Request handlers
β”œβ”€β”€ services/ # Business logic
β”œβ”€β”€ middlewares/ # HTTP middlewares
β”œβ”€β”€ routes/ # API routes
β”œβ”€β”€ utils/ # Helper functions
└── app.ts # Application entry

πŸ“¦ Core Dependencies

Package Version Purpose
express ^4.21.2 Web framework
zeromq ^6.3.0 Message queue
axios ^1.8.3 HTTP client
typescript ^5.8.2 Type support
pm2 latest Process management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /