File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tonic-tracing-opentelemetry/src/middleware Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::{
8
8
task:: { Context , Poll } ,
9
9
} ;
10
10
use tonic:: client:: GrpcService ;
11
- use tower:: Layer ;
11
+ use tower:: { Layer , Service } ;
12
12
use tracing:: Span ;
13
13
use tracing_opentelemetry_instrumentation_sdk:: { find_context_from_tracing, http as otel_http} ;
14
14
@@ -34,7 +34,7 @@ pub struct OtelGrpcService<S> {
34
34
inner : S ,
35
35
}
36
36
37
- impl < S , B , B2 > GrpcService < B > for OtelGrpcService < S >
37
+ impl < S , B , B2 > Service < Request < B > > for OtelGrpcService < S >
38
38
where
39
39
S : GrpcService < B , ResponseBody = B2 > + Clone + Send + ' static ,
40
40
S :: Future : Send + ' static ,
43
43
// B2: tonic::codegen::Body,
44
44
B2 : http_body:: Body ,
45
45
{
46
- type ResponseBody = B2 ;
46
+ type Response = Response < B2 > ;
47
47
type Error = S :: Error ;
48
48
type Future = ResponseFuture < S :: Future > ;
49
49
// #[allow(clippy::type_complexity)]
You can’t perform that action at this time.
0 commit comments