added tgi to name of metric

This commit is contained in:
Edwinhr716 2024-07-22 20:38:07 +00:00 committed by Nicolas Patry
parent 3e76ba6599
commit 3b0b66bedb
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -1993,8 +1993,8 @@ async fn start(
"Batch size of the next batch" "Batch size of the next batch"
); );
metrics::counter!("max_token_capacity").increment(u64::from(max_batch_total_tokens)); metrics::counter!("tgi_max_token_capacity").increment(u64::from(max_batch_total_tokens));
// CORS layer // CORS layer
let allow_origin = allow_origin.unwrap_or(AllowOrigin::any()); let allow_origin = allow_origin.unwrap_or(AllowOrigin::any());
let cors_layer = CorsLayer::new() let cors_layer = CorsLayer::new()