@@ -17,7 +17,7 @@ mod server;
1717#[ cfg( any( test, feature = "test-util" , fuzzing) ) ]
1818pub mod test_util;
1919
20- pub use self :: { metrics:: Metrics , policy:: DefaultPolicy } ;
20+ pub use self :: { metrics:: InboundMetrics , policy:: DefaultPolicy } ;
2121use linkerd_app_core:: {
2222 config:: { ConnectConfig , ProxyConfig , QueueConfig } ,
2323 drain,
@@ -63,7 +63,7 @@ pub struct Inbound<S> {
6363
6464#[ derive( Clone ) ]
6565struct Runtime {
66- metrics : Metrics ,
66+ metrics : InboundMetrics ,
6767 identity : identity:: creds:: Receiver ,
6868 tap : tap:: Registry ,
6969 span_sink : OpenCensusSink ,
@@ -150,7 +150,7 @@ impl<S> Inbound<S> {
150150impl Inbound < ( ) > {
151151 pub fn new ( config : Config , runtime : ProxyRuntime ) -> Self {
152152 let runtime = Runtime {
153- metrics : Metrics :: new ( runtime. metrics ) ,
153+ metrics : InboundMetrics :: new ( runtime. metrics ) ,
154154 identity : runtime. identity ,
155155 tap : runtime. tap ,
156156 span_sink : runtime. span_sink ,
@@ -170,7 +170,7 @@ impl Inbound<()> {
170170 ( this, drain)
171171 }
172172
173- pub fn metrics ( & self ) -> Metrics {
173+ pub fn metrics ( & self ) -> InboundMetrics {
174174 self . runtime . metrics . clone ( )
175175 }
176176
0 commit comments