usealloy::primitives::TxHash;/// Trait for recording collector-level metrics.
////// Consumers implement this for their own metrics infrastructure.
/// Pass as `Option<Arc<dyn CollectorMetrics>>` to `EventProcessor` / `UnifiedPoolUpdater`.
pubtraitCollectorMetrics: Send + Sync {/// Record that a new opportunity was received from a swap event.
fnadd_opportunity(&self, tx_hash: TxHash, log_index:u64, received_at:u64);/// Record the timestamp at which the event was processed.
fnset_processed_at(&self, tx_hash: TxHash, log_index:u64, processed_at:u64);}