Helionx Trace is an event protocol and debugging platform for reconstructing request timelines across distributed systems.
services/helionx-trace→ Go backend service (event ingestion + timeline reconstruction)ingestors/typescript→ TypeScript SDK (Express middleware + client ingestion)ingestors/python→ Python SDK (planned)examples/→ integration examples
Most systems require digging through logs across multiple services.
Helionx Trace gives you:
A single timeline showing what happened, where it failed, and how it recovered.
cd services/helionx-trace
go mod tidy
# run server (in-memory mode)
STORE_BACKEND=memory go run ./cmd/server
./scripts/test.sh add
./scripts/test.sh summaryRequest ID: req-2
Status: SUCCESS_AFTER_RETRY
Failure Point: payment.charge
Retry Count: 1
Total Duration: 8.093s
Timeline
--------
1. [api] request.received -> SUCCESS
2. [order] order.created -> SUCCESS (+1.015s)
3. [payment] charge -> FAILED (+2.024s) error=stripe timeout
4. [payment] charge -> RETRY (+3.028s) [retry]
5. [payment] charge -> SUCCESS (+2.025s)
This output is generated from raw event logs in a single API call.
Client → Event Ingestion API → EventStore → Timeline Reconstruction → Failure Analysis → Summary Output
Helionx Trace provides lightweight SDKs to send events automatically from applications.
Example capabilities (TypeScript SDK):
- Express middleware to capture request lifecycle (STARTED, SUCCESS, FAILED)
- Automatic request ID generation or propagation (supports existing headers)
- Client for sending structured events to Helionx backend
See:
ingestors/typescriptexamples/
- Ingest events via HTTP
- Group events by
requestId - Reconstruct ordered timeline
- Detect failures and retries
- Compute latency between steps
- Provide a summarized debugging view
GET /health
POST /events
Example:
{
"requestId": "req-1",
"service": "payment",
"eventType": "charge",
"status": "FAILED",
"metadata": {
"error": "stripe timeout"
}
}GET /debug/{requestId}
Example Response:
{
"requestId": "req-2",
"status": "SUCCESS_AFTER_RETRY",
"totalEvents": 5,
"retryCount": 1,
"totalDurationMs": 8122,
"failurePoint": "payment.charge",
"timeline": [ ... ]
}GET /debug/{requestId}/summary
Example Output:
Request ID: req-2
Status: SUCCESS_AFTER_RETRY
Failure Point: payment.charge
Retry Count: 1
Total Duration: 8.093s
Timeline
--------
1. [api] request.received -> SUCCESS
2. [order] order.created -> SUCCESS (+1.015s)
3. [payment] charge -> FAILED (+2.024s) error=stripe timeout
4. [payment] charge -> RETRY (+3.028s) [retry]
5. [payment] charge -> SUCCESS (+2.025s)
Default: in-memory (no persistence)
Use Postgres for persistence across restarts.
cd services/helionx-trace
go mod tidy
STORE_BACKEND=memory go run ./cmd/serverStart Postgres locally with Docker Compose:
make upRun the server using Postgres:
cd services/helionx-trace
STORE_BACKEND=postgres go run ./cmd/serverCheck status and logs:
make ps
make logsConnect to the database:
make psqlReset database (re-runs init.sql on next start):
make db-reset
make upDefault DB config:
- host:
localhost - port:
5432 - database:
helionx - user:
helionx - password:
helionx
Note:
db/init.sqlis auto-applied on first startup via Docker.
Use the provided script to simulate flows:
./scripts/test.sh add
./scripts/test.sh summary
./scripts/test.sh timelineOr run everything:
./scripts/test.sh allYou can also override the request ID:
REQUEST_ID=req-7 ./scripts/test.sh add- Go HTTP server
- EventStore interface
- InMemoryStore (default)
- PostgresStore (persistent storage)
- Timeline reconstruction service
- Optional Postgres via Docker Compose
Modern distributed systems are hard to debug.
Helionx Trace reduces debugging from:
"search logs across services"
To:
"fetch one request timeline"
- Logs → raw, unstructured, hard to correlate
- Tracing → requires instrumentation and setup
- Helionx Trace → works on events and reconstructs failures automatically
- Where did the request fail?
- Did it recover?
- How long did each step take?
- How many retries occurred?
- Request-level metrics (latency distribution, retry rates, failure patterns)
- Docker Compose (Postgres) + init.sql
- Human-readable summary output
- Better retry detection logic
- UI for timeline visualization
- Integration with Kafka / event streams
A request flows through API → Order → Payment.
The payment service fails due to a Stripe timeout, triggers a retry, and eventually succeeds.
- Engineers search logs across multiple services
- Correlating events takes several minutes
- Retry behavior is hard to reconstruct manually
- Failure detected at
payment.charge - Retry triggered after ~3 seconds
- Successful recovery after retry
- Total request duration ~8 seconds
Debugging is reduced from minutes of log searching to a single API call.
MVP working:
- ingestion ✅
- timeline reconstruction ✅
- failure detection ✅
- retry tracking ✅
Next focus: usability + persistence
MIT