@@ -20,8 +20,8 @@ use axum::routing::{get, post};
2020use axum:: { http, Json , Router } ;
2121use axum_tracing_opentelemetry:: middleware:: OtelAxumLayer ;
2222use futures:: future:: join_all;
23- use http:: header:: AUTHORIZATION ;
2423use futures:: FutureExt ;
24+ use http:: header:: AUTHORIZATION ;
2525use metrics_exporter_prometheus:: { PrometheusBuilder , PrometheusHandle } ;
2626use std:: net:: SocketAddr ;
2727use std:: time:: { Duration , Instant } ;
@@ -1385,20 +1385,6 @@ pub async fn run(
13851385 // Prometheus metrics route
13861386 . route ( "/metrics" , get ( metrics) ) ;
13871387
1388- #[ cfg( feature = "google" ) ]
1389- {
1390- tracing:: info!( "Built with `google` feature" ) ;
1391- tracing:: info!(
1392- "Environment variables `AIP_PREDICT_ROUTE` and `AIP_HEALTH_ROUTE` will be respected."
1393- ) ;
1394- if let Ok ( env_predict_route) = std:: env:: var ( "AIP_PREDICT_ROUTE" ) {
1395- app = app. route ( & env_predict_route, post ( vertex_compatibility) ) ;
1396- }
1397- if let Ok ( env_health_route) = std:: env:: var ( "AIP_HEALTH_ROUTE" ) {
1398- app = app. route ( & env_health_route, get ( health) ) ;
1399- }
1400- let mut app = Router :: new ( ) . merge ( base_routes) ;
1401-
14021388 #[ cfg( feature = "google" ) ]
14031389 {
14041390 tracing:: info!( "Built with `google` feature" ) ;
0 commit comments