1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-23 10:53:02 +01:00

Allow root_span to wrap the full middlware chain, not just the output future (#37)

This commit is contained in:
Riley 2021-09-21 03:32:52 -05:00 committed by GitHub
parent 42ede27123
commit f6ccc73151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ where
let root_span_wrapper = RootSpan::new(root_span.clone());
req.extensions_mut().insert(root_span_wrapper);
let fut = self.service.call(req);
let fut = root_span.in_scope(|| self.service.call(req));
Box::pin(
async move {
let outcome = fut.await;