diff --git a/tracing-tower/src/service_span.rs b/tracing-tower/src/service_span.rs index 03702bcd..7dca5c72 100644 --- a/tracing-tower/src/service_span.rs +++ b/tracing-tower/src/service_span.rs @@ -183,7 +183,6 @@ pub mod make { impl MakeService where - M: tower_util::MakeService, G: GetSpan, { pub fn new(inner: M, get_span: G) -> Self { @@ -194,6 +193,16 @@ pub mod make { } } } + + impl Clone for MakeService + where + M: Clone, + G: GetSpan + Clone, + { + fn clone(&self) -> Self { + Self::new(self.inner.clone(), self.get_span.clone()) + } + } } // === impl Service ===