[Bugfix][Rust Frontend] Skip engine-derived metrics under --disable-log-stats (#59205)
Signed-off-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f5ed3d9c03
commit
afac509a33
@@ -268,7 +268,9 @@ pub struct Config {
|
||||
#[educe(Debug(method(fmt_redacted_api_keys)))]
|
||||
pub api_keys: Vec<String>,
|
||||
/// When `true`, suppress periodic stats logging (throughput, queue depth,
|
||||
/// cache usage).
|
||||
/// cache usage). Engines also stop recording stats, so metrics derived from
|
||||
/// engine-reported scheduler stats and request lifecycle events are not
|
||||
/// exported.
|
||||
pub disable_log_stats: bool,
|
||||
/// TCP port for the gRPC Inference service. When `None`, no gRPC server is
|
||||
/// started.
|
||||
|
||||
@@ -2234,6 +2234,7 @@ async fn control_aggregates_multi_engine_capacity() {
|
||||
coordinator_mode: None,
|
||||
model_name: "test-model".to_string(),
|
||||
client_index: 0,
|
||||
engine_stats_enabled: true,
|
||||
};
|
||||
let client_task = tokio::spawn(EngineCoreClient::connect(client_config));
|
||||
let mut engine_sockets = Vec::new();
|
||||
|
||||
@@ -130,6 +130,7 @@ async fn build_state(config: &Config) -> Result<Arc<AppState>> {
|
||||
coordinator_mode,
|
||||
model_name: metrics_model_name,
|
||||
client_index: 0,
|
||||
engine_stats_enabled: !config.disable_log_stats,
|
||||
})
|
||||
.await
|
||||
.context("failed to connect to engine core")?;
|
||||
|
||||
Reference in New Issue
Block a user