Files
foxhunt/monitoring/mod.rs.bak
jgrusewski bfdbf412a0 🔥 ARCHITECTURAL ENFORCEMENT: Complete elimination of ALL re-export anti-patterns
AGGRESSIVE CLEANUP RESULTS:
- ZERO pub use statements remaining (verified: 0 matches)
- ALL prelude modules DESTROYED (ml, tli, storage, trading_engine)
- ALL wildcard re-exports ELIMINATED
- ALL external crate re-exports REMOVED (chrono, uuid, etc.)
- Type governance STRICTLY ENFORCED - no backward compatibility

ARCHITECTURAL PRINCIPLES ENFORCED:
 Single source of truth for all types
 Strict module boundaries - no leaking internals
 Explicit imports required everywhere
 Complete separation of concerns
 No convenience re-exports allowed

IMPACT:
- 152+ compilation errors forcing explicit imports (INTENDED)
- Every import now uses full canonical path
- Module boundaries are now inviolable
- Type system architecture is now pristine

This represents a complete architectural victory - the codebase now has
ZERO re-export violations and enforces strict type governance throughout.

NO TRANSITIONAL CODE. NO BACKWARD COMPATIBILITY. PURE ARCHITECTURE.
2025-09-28 12:48:51 +02:00

32 lines
744 B
Rust

//! Foxhunt Monitoring Module
//!
//! Provides comprehensive Prometheus metrics collection for the HFT trading system.
//! Optimized for minimal latency impact in critical trading paths.
pub mod metrics;
pub mod server;
pub use metrics::{
FoxhuntMetrics,
record_order,
record_order_fill,
record_order_rejection,
record_latency,
record_order_processing_latency,
record_market_data_latency,
record_risk_breach,
update_position_value,
update_var,
update_active_orders,
record_market_data_message,
record_ml_prediction,
update_throughput,
};
pub use server::{
MetricsServer,
MetricsServerConfig,
MetricsError,
start_metrics_server,
start_metrics_server_with_config,
};