How am-kantox/telemetria works
Main Components
a) Core Components:
• Telemetria Application Core
• Module Hooks System
• Backend System
• Messenger System
• Compiler Integration
• Throttler
b) External Integrations:
• OpenTelemetry
• Telemetry
• Slack
• Logger
Top Layer (Entry Points):
• Compiler Integration (@telemetria annotations)
• Mix Tasks
• Configuration Provider
Middle Layer (Core Processing):
• Module Hooks
• Application Core
• Throttler
• Formatter
Bottom Layer (Output/Storage):
• Backend System
• OpenTelemetry Backend
• Telemetry Backend
• Logger Backend
• Messenger System
• Slack Integration
• Logger Integration
Key Relationships to Highlight
• How the compiler integration (mix compiler.telemetria) processes module annotations
• Flow from module hooks to the backend system
• Demonstrate how the throttler interfaces with the event flow
• Relationship between backends and external services
Important Details
• Configuration flow from .telemetria.config.json
• Event flow paths
• Instrumentation points
• Backend selection/routing
• Throttling decision points
Specific Implementation Notes
• The compile-time integration through Mix compiler
• Runtime event handling and processing
• Multiple backend support
• Messaging system flexibility
• Throttling capabilities
• OpenTelemetry integration
• Compile Time | --> | Runtime Core | --> | Output Systems |
• Annotations | | - Module Hooks | | - Backends |
• Mix Tasks | | - Throttling | | - Messengers |
• Config | | - Processing | | - External |
Technical Details to Highlight
• Support for different event types
• Integration with existing Elixir applications
• Configuration options and customization points
• Backend abstraction layer
• Messaging system flexibility
Remember to include version compatibility information and note the support for both synchronous and asynchronous operations where applicable.
This system design should help developers understand how Telemetría integrates with their applications and how it processes and routes telemetry data through various backends and messaging systems.