@@ -20,8 +20,8 @@ use axum::routing::{get, post};
20
20
use axum:: { http, Json , Router } ;
21
21
use axum_tracing_opentelemetry:: middleware:: OtelAxumLayer ;
22
22
use futures:: future:: join_all;
23
- use http:: header:: AUTHORIZATION ;
24
23
use futures:: FutureExt ;
24
+ use http:: header:: AUTHORIZATION ;
25
25
use metrics_exporter_prometheus:: { PrometheusBuilder , PrometheusHandle } ;
26
26
use std:: net:: SocketAddr ;
27
27
use std:: time:: { Duration , Instant } ;
@@ -1385,20 +1385,6 @@ pub async fn run(
1385
1385
// Prometheus metrics route
1386
1386
. route ( "/metrics" , get ( metrics) ) ;
1387
1387
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
-
1402
1388
#[ cfg( feature = "google" ) ]
1403
1389
{
1404
1390
tracing:: info!( "Built with `google` feature" ) ;
0 commit comments