Add metrics module with uptime, active feeds, records received, errors, and feed latency metrics. Spawn HTTP /metrics endpoint using axum, following the same inline pattern as ml-training-service. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
768 B
Rust
30 lines
768 B
Rust
//! Data Acquisition Service Library
|
|
//!
|
|
//! Provides automated Databento data downloading with:
|
|
//! - Scheduled downloads with priority queuing
|
|
//! - Automatic MinIO upload
|
|
//! - Cost tracking and estimation
|
|
//! - Data quality validation
|
|
//! - Retry logic with exponential backoff
|
|
//! - Concurrent download limits
|
|
|
|
#![deny(clippy::unwrap_used, clippy::expect_used)]
|
|
|
|
pub mod downloader;
|
|
pub mod error;
|
|
pub mod metrics;
|
|
pub mod service;
|
|
pub mod uploader;
|
|
pub mod validator;
|
|
|
|
// Re-export proto definitions
|
|
pub mod proto {
|
|
#![allow(clippy::all)]
|
|
#![allow(unused_qualifications)]
|
|
tonic::include_proto!("data_acquisition");
|
|
}
|
|
|
|
// Re-export commonly used types
|
|
pub use error::{AcquisitionError, AcquisitionResult};
|
|
pub use service::DataAcquisitionServiceImpl;
|