feat: add Heimdall telemetry system with async logging, analytics, and zero-loss guarantee#61
Open
cto-new[bot] wants to merge 1 commit into
Open
feat: add Heimdall telemetry system with async logging, analytics, and zero-loss guarantee#61cto-new[bot] wants to merge 1 commit into
cto-new[bot] wants to merge 1 commit into
Conversation
…ogging Introduce Heimdall telemetry system to securely collect, persist, and analyze API request metadata with zero-loss guarantee. Change enables async, non-blocking request logging, Redis-based frequency analytics, and disk-backed fallback queue for robust persistence. Adds detailed middleware, model, service, and controller layer, with unit, integration, and fallback behavior tests. - Needed for high-assurance request auditing, anomaly detection, and analytics - Adds HeimdallRequestLog model, async worker, disk queue, and analytics endpoints - Integrates whitelisted header parsing, sanitization, and frequency tracking - Admin/config APIs for telemetry stats, dashboard, and rollups Security: Auth fingerprinting, header sanitation, optional geo, cookies redaction Docs: New usage guide, .env.example template
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.
Summary
This PR implements the Heimdall telemetry system for secure, async API request logging, advanced analytics, and zero-loss guarantees. All request metadata is collected, sanitized, and persisted to dedicated logging storage without blocking the main request flow.
Details
HeimdallRequestLogmodel and migrations for structured telemetry data.Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup