feat: implement metrics collection system for performance, errors, an…#644
Open
fridaypetra55-afk wants to merge 1 commit into
Open
feat: implement metrics collection system for performance, errors, an…#644fridaypetra55-afk wants to merge 1 commit into
fridaypetra55-afk wants to merge 1 commit into
Conversation
…d business metrics - Add MetricsCollector singleton (src/metrics/MetricsCollector.ts) - recordRequest: HTTP performance metrics with slow-request warnings - recordError: error tracking by type and status code - recordEvent: business event tracking (registrations, enrollments, certificates) - getSummary: aggregated snapshot with system metrics (uptime, memory, CPU) - Ring-buffer trimming to bound memory usage (default 10k entries/category) - Add metrics routes (src/routes/metrics.routes.ts) - GET /api/v1/metrics - aggregated summary - GET /api/v1/metrics/performance - raw performance entries - GET /api/v1/metrics/errors - raw error entries - GET /api/v1/metrics/business - raw business event entries - POST /api/v1/metrics/reset - clear all metrics - Register /metrics route in src/routes/index.ts - Add 36 unit tests with 100%% coverage (tests/metrics.test.ts) - Fix malformed package.json (duplicate keys, missing commas) - Add jest.setup.js for test environment setup Closes #819
|
@fridaypetra55-afk is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@fridaypetra55-afk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…d business metrics
Closes #619
Closes #617
Closes #616
Closes #618