[Bugfix][Rust Frontend] Prevent MM timing from enabling debug tracing (#58378)

Co-authored-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: reidliu41 <reid201711@gmail.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Reid
2026-09-24 09:22:23 +00:00
committed by GitHub
co-authored by Bugen Zhao Claude Opus 5.5
parent bbd7c24d6e
commit e430f7421f
3 changed files with 79 additions and 9 deletions
+1 -1
View File
@@ -28,6 +28,7 @@ thiserror-ext.workspace = true
time.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
trait-set.workspace = true
uuid.workspace = true
vllm-engine-core-client.workspace = true
@@ -48,7 +49,6 @@ rmp-serde.workspace = true
serial_test.workspace = true
tempfile.workspace = true
tokio.workspace = true
tracing-subscriber.workspace = true
uuid.workspace = true
vllm-engine-core-client = { workspace = true, features = ["test-util"] }
vllm-tokenizer = { workspace = true, features = ["test-utils"] }
+5 -1
View File
@@ -4,6 +4,7 @@
//! Multimodal preprocessing spans and their timing collector configuration.
use tracing::{Span, info_span};
use tracing_subscriber::filter::{Filtered, LevelFilter};
use vllm_tracing::timing::{RequestTimingLayer, RequestTimingStats};
/// Target of the multimodal preprocessing stage spans.
@@ -12,7 +13,10 @@ pub(super) const MM_STAGE_TARGET: &str = "mm_processor_timing";
/// Create the timing layer and its stats handle for multimodal preprocessing
/// stage spans (`vllm-bench mm-processor`), mirroring the Python
/// `TimingContext` / `MultiModalTimingRegistry`.
pub fn mm_timing_layer() -> (RequestTimingLayer, RequestTimingStats) {
pub fn mm_timing_layer<S>() -> (
Filtered<RequestTimingLayer, LevelFilter, S>,
RequestTimingStats,
) {
RequestTimingLayer::new(MM_STAGE_TARGET)
}