@@ -932,7 +932,7 @@ mod transport {
932932 // Connection to the server should be a failure with the EXFULL error
933933 // code.
934934 assert_eventually_contains ! ( metrics. get( "/metrics" ) . await ,
935- "tcp_close_total{peer=\" dst\" ,direction=\" inbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" ,errno=\" EXFULL\" } 1" ) ;
935+ "tcp_close_total{peer=\" dst\" ,direction=\" inbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" ,errno=\" EXFULL\" } 1" ) ;
936936 // Connection from the client should have closed cleanly.
937937 assert_eventually_contains ! (
938938 metrics. get( "/metrics" ) . await ,
@@ -963,7 +963,7 @@ mod transport {
963963 // Connection to the server should be a failure with the EXFULL error
964964 // code.
965965 assert_eventually_contains ! ( metrics. get( "/metrics" ) . await ,
966- "tcp_close_total{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" ,errno=\" EXFULL\" } 1" ) ;
966+ "tcp_close_total{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" ,errno=\" EXFULL\" } 1" ) ;
967967 // Connection from the client should have closed cleanly.
968968 assert_eventually_contains ! ( metrics. get( "/metrics" ) . await ,
969969 "tcp_close_total{peer=\" src\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" loopback\" ,errno=\" \" } 1" ) ;
@@ -1121,7 +1121,7 @@ mod transport {
11211121 tcp_client. write ( TcpFixture :: HELLO_MSG ) . await ;
11221122 assert_eq ! ( tcp_client. read( ) . await , TcpFixture :: BYE_MSG . as_bytes( ) ) ;
11231123 let expected = format ! (
1124- "tcp_open_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" }} 1" ,
1124+ "tcp_open_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" }} 1" ,
11251125 proxy. outbound_server. as_ref( ) . unwrap( ) . addr,
11261126 ) ;
11271127 assert_eventually_contains ! ( metrics. get( "/metrics" ) . await , & expected) ;
@@ -1184,7 +1184,7 @@ mod transport {
11841184 assert_eventually_contains ! ( out,
11851185 "tcp_connection_duration_ms_count{peer=\" src\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" loopback\" ,errno=\" \" } 1" ) ;
11861186 assert_eventually_contains ! ( out,
1187- "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" ,errno=\" \" } 1" ) ;
1187+ "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" ,errno=\" \" } 1" ) ;
11881188
11891189 let tcp_client = client. connect ( ) . await ;
11901190
@@ -1194,14 +1194,14 @@ mod transport {
11941194 assert_eventually_contains ! ( out,
11951195 "tcp_connection_duration_ms_count{peer=\" src\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" loopback\" ,errno=\" \" } 1" ) ;
11961196 assert_eventually_contains ! ( out,
1197- "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" ,errno=\" \" } 1" ) ;
1197+ "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" ,errno=\" \" } 1" ) ;
11981198
11991199 tcp_client. shutdown ( ) . await ;
12001200 let out = metrics. get ( "/metrics" ) . await ;
12011201 assert_eventually_contains ! ( out,
12021202 "tcp_connection_duration_ms_count{peer=\" src\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" loopback\" ,errno=\" \" } 2" ) ;
12031203 assert_eventually_contains ! ( out,
1204- "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" ,errno=\" \" } 2" ) ;
1204+ "tcp_connection_duration_ms_count{peer=\" dst\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" ,errno=\" \" } 2" ) ;
12051205 }
12061206
12071207 #[ tokio:: test]
@@ -1217,7 +1217,7 @@ mod transport {
12171217 TcpFixture :: BYE_MSG . len( )
12181218 ) ;
12191219 let dst_expected = format ! (
1220- "tcp_write_bytes_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" }} {}" ,
1220+ "tcp_write_bytes_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" }} {}" ,
12211221 proxy. outbound_server. as_ref( ) . unwrap( ) . addr,
12221222 TcpFixture :: HELLO_MSG . len( )
12231223 ) ;
@@ -1246,7 +1246,7 @@ mod transport {
12461246 TcpFixture :: HELLO_MSG . len( )
12471247 ) ;
12481248 let dst_expected = format ! (
1249- "tcp_read_bytes_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_http \" }} {}" ,
1249+ "tcp_read_bytes_total{{peer=\" dst\" ,authority=\" {}\" ,direction=\" outbound\" ,tls=\" no_identity\" ,no_tls_reason=\" not_provided_by_service_discovery \" }} {}" ,
12501250 proxy. outbound_server. as_ref( ) . unwrap( ) . addr,
12511251 TcpFixture :: BYE_MSG . len( )
12521252 ) ;
0 commit comments