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::{
88 task:: { Context , Poll } ,
99} ;
1010use tonic:: client:: GrpcService ;
11- use tower:: Layer ;
11+ use tower:: { Layer , Service } ;
1212use tracing:: Span ;
1313use tracing_opentelemetry_instrumentation_sdk:: { find_context_from_tracing, http as otel_http} ;
1414
@@ -34,7 +34,7 @@ pub struct OtelGrpcService<S> {
3434 inner : S ,
3535}
3636
37- impl < S , B , B2 > GrpcService < B > for OtelGrpcService < S >
37+ impl < S , B , B2 > Service < Request < B > > for OtelGrpcService < S >
3838where
3939 S : GrpcService < B , ResponseBody = B2 > + Clone + Send + ' static ,
4040 S :: Future : Send + ' static ,
4343 // B2: tonic::codegen::Body,
4444 B2 : http_body:: Body ,
4545{
46- type ResponseBody = B2 ;
46+ type Response = Response < B2 > ;
4747 type Error = S :: Error ;
4848 type Future = ResponseFuture < S :: Future > ;
4949 // #[allow(clippy::type_complexity)]
You can’t perform that action at this time.
0 commit comments