Skip to content

Commit c9627dc

Browse files
committed
docs: comprehensive README update with detailed documentation
1 parent 0cad2cd commit c9627dc

1 file changed

Lines changed: 87 additions & 0 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Code Error Microservice
2+
3+
A real-time error monitoring and reporting service that integrates with Telex channels, providing prioritized error classification and automated notifications.
4+
5+
## 🎯 Overview
6+
7+
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.
8+
9+
10+
### Core Components
11+
12+
- **Error Controller**: Entry point for error processing
13+
- **Categorization Service**: Analyzes and classifies errors
14+
- **ZeroMQ Service**: Handles message queuing and distribution
15+
- **Webhook Service**: Manages Telex channel communication
16+
17+
18+
## 🎯 Features
19+
20+
- **Error Detection**
21+
- Real-time monitoring
22+
- Static code analysis (ESLint)
23+
- Stack trace processing
24+
25+
- **Error Processing**
26+
- Automatic categorization
27+
- Priority classification
28+
- Error enrichment
29+
30+
- **Notification System**
31+
- Real-time Telex updates
32+
- Configurable webhooks
33+
34+
## πŸš€ Getting Started
35+
36+
### Prerequisites
37+
38+
- Node.js 20.x
39+
- npm 9.x
40+
- ZeroMQ library
41+
42+
### Quick Start
43+
44+
```bash
45+
# Clone repository
46+
git clone https://github.com/telexintegrations/code-error-microservice
47+
48+
# Install dependencies
49+
npm install
50+
51+
# Setup environment
52+
cp .env.example .env
53+
54+
# Start development server
55+
npm run dev
56+
```
57+
58+
## 🏷️ Error Classification
59+
60+
| Severity | Description | Example |
61+
|----------|-------------|---------|
62+
| 🚨 High | System critical | Service crash, DB connection failure |
63+
| πŸ”” Medium | Functional issues | API timeout, validation errors |
64+
| ℹ️ Low | Minor problems | Deprecation warnings, style issues |
65+
66+
## πŸ› οΈ Project Structure
67+
68+
```
69+
src/
70+
β”œβ”€β”€ controllers/ # Request handlers
71+
β”œβ”€β”€ services/ # Business logic
72+
β”œβ”€β”€ middlewares/ # HTTP middlewares
73+
β”œβ”€β”€ routes/ # API routes
74+
β”œβ”€β”€ utils/ # Helper functions
75+
└── app.ts # Application entry
76+
```
77+
78+
79+
## πŸ“¦ Core Dependencies
80+
81+
| Package | Version | Purpose |
82+
|---------|---------|---------|
83+
| express | ^4.21.2 | Web framework |
84+
| zeromq | ^6.3.0 | Message queue |
85+
| axios | ^1.8.3 | HTTP client |
86+
| typescript | ^5.8.2 | Type support |
87+
| pm2 | latest | Process management |

0 commit comments

Comments
Β (0)