How nithish-1622/aegis-telemetry works
Purpose and Scope
Aegis Telemetry is a Java telemetry-generation platform for the Aegis suite. Its explicit system boundary is publishing Kafka telemetry events; it must not couple to the separate “Person 2” runtime-intelligence backend. This is currently a Phase 0 scaffold: module/package boundaries exist, but implementation classes and executable application entry points are not present.
Build and Entry Boundary
The repository is a Maven multi-module project rooted at pom.xml. Module-level Maven boundaries are defined by:
• event-publisher/pom.xml
• demo-services/pom.xml
• shared-contracts/pom.xml
The practical current entry point is Maven build/module selection rather than a Java main class. Java source roots are placeholders under each module’s src/main/java.
Contract and Shared Model Boundary
shared-contracts is the intended compatibility boundary for telemetry payloads and common types shared by producers and platform modules:
• shared-contracts/src/main/java/com/aegis/telemetry/contracts
• shared-contracts/src/main/java/com/aegis/telemetry/common
• shared-contracts/pom.xml
Kafka event schemas and serialization expectations should be owned here, so demo services, instrumentation, tracing, and publishing can evolve without direct dependency on runtime intelligence.
Telemetry Capture and Construction Pipeline
The intended generation pipeline is divided into three components:
1. Runtime-facing SDK APIs in runtime-sdk/src/main/java/com/aegis/telemetry/sdk.
2. Instrumentation logic in instrumentation-engine/src/main/java/com/aegis/telemetry/instrumentation.
3. Trace/correlation construction in trace-engine/src/main/java/com/aegis/telemetry/trace.
Control flow should run from application/service activity through SDK or instrumentation capture, into trace enrichment and shared event contracts, before publication. These modules separate application integration from how telemetry is generated internally.
Configuration and Service Identity
Runtime behavior and producer/service identity are isolated into:
• runtime-config/src/main/java/com/aegis/telemetry/config
• service-registry/src/main/java/com/aegis/telemetry/registry
These are architectural boundaries for loading runtime settings and resolving/registering service metadata. They should feed the capture/publish pipeline rather than being embedded in demo services or event schemas.
Publishing and External Infrastructure
event-publisher/src/main/java/com/aegis/telemetry/publisher is the Kafka-facing adapter and the key outbound integration boundary. Kafka is the only explicitly named external service/infrastructure dependency. Publisher code should accept shared contracts and emit them to Kafka while shielding the rest of the system from broker/client details.
The material runtime is Java, built and composed with Maven. No container deployment implementation is present; docker/README.md is the repository’s Docker-related boundary.
Demo and Failure Workloads
Three demo service modules represent telemetry-producing workloads:
• demo-services/inventory-service/src/main/java/com/aegis/telemetry/demo/inventory
• demo-services/order-service/src/main/java/com/aegis/telemetry/demo/order
• demo-services/payment-service/src/main/java/com/aegis/telemetry/demo/payment
failure-simulator/src/main/java/com/aegis/telemetry/simulator is a separate intended source of failure scenarios. These modules should exercise SDK/instrumentation and publisher paths, not become dependencies of the core telemetry platform.
Architecture Status
The authoritative Phase 0 architecture record is docs/phase-0-architecture.md. All Java package directories currently contain .gitkeep placeholders, so dependencies, event flow implementation, Kafka client configuration, and runnable service entry points remain to be built.
Main entry points: pom.xml Demo services module · contracts Event contracts · sdk Runtime SDK · instrumentation Instrumentation engine
Components 19
Build & records
- Maven reactor · Current practical entry boundary.
pom.xml - Shared contracts module
shared-contracts/pom.xml - Publisher module
event-publisher/pom.xml - Demo services module
demo-services/pom.xml - Phase 0 architecture · Authoritative scaffold status and boundaries.
docs/phase-0-architecture.md - Docker boundary · No container deployment implementation is present.
docker/README.md
Telemetry platform
- Event contracts · Owns telemetry schemas, serialization expectations, and common types.
shared-contracts/src/main/java/com/aegis/telemetry/contracts - Common types
shared-contracts/src/main/java/com/aegis/telemetry/common - Runtime configuration
runtime-config/src/main/java/com/aegis/telemetry/config - Service registry · Resolves or registers producer service metadata.
service-registry/src/main/java/com/aegis/telemetry/registry - Runtime SDK · Application-facing telemetry capture APIs.
runtime-sdk/src/main/java/com/aegis/telemetry/sdk - Instrumentation engine
instrumentation-engine/src/main/java/com/aegis/telemetry/instrumentation - Trace engine · Builds trace and correlation context.
trace-engine/src/main/java/com/aegis/telemetry/trace - Kafka publisher · Shields telemetry generation from Kafka client details.
event-publisher/src/main/java/com/aegis/telemetry/publisher
Demo workloads
- Inventory demo
demo-services/inventory-service/src/main/java/com/aegis/telemetry/demo/inventory - Order demo
demo-services/order-service/src/main/java/com/aegis/telemetry/demo/order - Payment demo
demo-services/payment-service/src/main/java/com/aegis/telemetry/demo/payment - Failure simulator
failure-simulator/src/main/java/com/aegis/telemetry/simulator
Other components
- Kafka · Only explicit external infrastructure dependency.
Connections 22
- Maven reactor → Shared contracts module: selects module
- Maven reactor → Publisher module: selects module
- Maven reactor → Demo services module: selects module
- Shared contracts module → Event contracts: builds
- Shared contracts module → Common types: builds
- Publisher module → Kafka publisher: builds
- Demo services module → Inventory demo: contains
- Demo services module → Order demo: contains
- Demo services module → Payment demo: contains
- Inventory demo → Runtime SDK: captures activity
- Order demo → Runtime SDK: captures activity
- Payment demo → Runtime SDK: captures activity
- Failure simulator → Instrumentation engine: exercises scenarios
- Runtime SDK → Instrumentation engine: delegates capture
- Instrumentation engine → Trace engine: enriches
- Runtime configuration → Instrumentation engine: supplies settings
- Service registry → Trace engine: supplies service identity
- Trace engine → Event contracts: constructs events
- Common types → Event contracts: supports
- Event contracts → Kafka publisher: publishes event payloads
- Runtime configuration → Kafka publisher: supplies producer settings
- Kafka publisher → Kafka: emits telemetry events