|
27 | 27 | //! - ISL Blocks: Cumulative count of total blocks in all KV hit rate events |
28 | 28 | //! - Overlap Blocks: Cumulative count of blocks that were already in the KV cache |
29 | 29 | use clap::Parser; |
30 | | -use dynamo_llm::kv_router::scheduler::KVHitRateEvent; |
31 | 30 | use dynamo_llm::kv_router::KV_HIT_RATE_SUBJECT; |
| 31 | +use dynamo_llm::kv_router::scheduler::KVHitRateEvent; |
32 | 32 | use dynamo_runtime::{ |
33 | | - error, logging, |
| 33 | + DistributedRuntime, ErrorContext, Result, Runtime, Worker, error, logging, |
34 | 34 | traits::events::{EventPublisher, EventSubscriber}, |
35 | 35 | utils::{Duration, Instant}, |
36 | | - DistributedRuntime, ErrorContext, Result, Runtime, Worker, |
37 | 36 | }; |
38 | 37 | use futures::stream::StreamExt; |
39 | 38 | use std::sync::Arc; |
40 | 39 |
|
41 | 40 | // Import from our library |
42 | 41 | use metrics::{ |
43 | | - collect_endpoints, extract_metrics, postprocess_metrics, LLMWorkerLoadCapacityConfig, |
44 | | - MetricsMode, PrometheusMetricsCollector, |
| 42 | + LLMWorkerLoadCapacityConfig, MetricsMode, PrometheusMetricsCollector, collect_endpoints, |
| 43 | + extract_metrics, postprocess_metrics, |
45 | 44 | }; |
46 | 45 |
|
47 | 46 | /// CLI arguments for the metrics application |
@@ -274,7 +273,7 @@ mod tests { |
274 | 273 |
|
275 | 274 | #[test] |
276 | 275 | fn test_namespace_from_env() { |
277 | | - env::set_var("DYN_NAMESPACE", "test-namespace"); |
| 276 | + unsafe { env::set_var("DYN_NAMESPACE", "test-namespace") }; |
278 | 277 | let args = Args::parse_from(["count", "--component", "comp", "--endpoint", "end"]); |
279 | 278 | assert_eq!(args.namespace, "test-namespace"); |
280 | 279 | } |
|
0 commit comments