Repository navigation
feat(observability): configurable health probes, incident timelines, trace propagation, and parser alerting - #1285
Merged
mijinummi merged 1 commit intoOct 20, 2026
Conversation
…trace propagation, and parser alerting - Add configurable health probe thresholds for subsystem health evaluation (healthy, degraded, unhealthy), latency thresholds, consecutive failure/success counts, and sliding window failure rates (MDTechLabs#1266). - Create incident timeline export for failed scans across JSON, Markdown post-mortem reports, and RFC 4180 CSV with tenant isolation, concurrency resilience, and secret sanitization (MDTechLabs#1265). - Implement distributed trace propagation across API gateways and background workers complying with W3C Trace Context (traceparent, tracestate, baggage) and AsyncLocalStorage context scope (MDTechLabs#1263). - Add automated alerting for repeated AST parser failures across repositories with deterministic tracking, cooldown suppression, severity escalation, and auto-resolution (MDTechLabs#1262). Closes MDTechLabs#1262 Closes MDTechLabs#1263 Closes MDTechLabs#1265 Closes MDTechLabs#1266
|
@adeniran19-maker 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.
Summary
This pull request implements four key operations and observability features across GasGuard's platform:
Configurable Health Probe Thresholds (Closes Add configurable health probe thresholds #1266):
HealthProbeandHealthProbeRegistrysupporting tunable latency thresholds (healthyLatencyMsThreshold,degradedLatencyMsThreshold,unhealthyLatencyMsThreshold), consecutive failure/success counts, and sliding window failure rates.healthy,degraded,unhealthy).libs/monitoring/health-probe.spec.ts).docs/HEALTH_PROBE_THRESHOLDS.md.Incident Timeline Export for Failed Scans (Closes Create incident timeline export for failed scans #1265):
IncidentTimelineStoreandIncidentTimelineExportService) capturing events across scan lifecycles (queueing, lease acquisition, worker assignment, parsing, analyzer execution, resource alarms, and worker crashes).maxIncidentsPerTenant,maxEventsPerIncident).0x[a-fA-F0-9]{64}), bearer tokens, and credentials.apps/api/src/exports/incident-timeline/).docs/INCIDENT_TIMELINE_EXPORT.md.Distributed Trace Propagation Across API and Workers (Closes Implement trace propagation across API and workers #1263):
traceparent,tracestate, andbaggage).extractFromHttpHeaders,injectIntoHttpHeaders).injectIntoJobEnvelope,extractFromJobEnvelope) for BullMQ and background workers.runWithContext,startSpan,endSpan).apps/api/src/common/tracing/).docs/TRACE_PROPAGATION.md.Alerting for Repeated Parser Failures (Closes Add alerting for repeated parser failures #1262):
ParserFailureAlertTrackerandParserFailureAlertServiceto track AST parsing errors across Solidity, Vyper, and Soroban repositories under strict tenant isolation.apps/api/src/scanner/parser-alerting/).docs/PARSER_FAILURE_ALERTING.md.Issues Addressed
Verification
libs/monitoring/health-probe.spec.ts: 26 tests passedapps/api/src/exports/incident-timeline/: 12 tests passedapps/api/src/common/tracing/: 15 tests passedapps/api/src/scanner/parser-alerting/: 13 tests passed