mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-03 07:44:42 +00:00
fix tower-h2 example not entering server span
This commit is contained in:
parent
0ca0e79772
commit
ff850726ca
@ -142,6 +142,7 @@ fn main() {
|
|||||||
})
|
})
|
||||||
.map_err(|e| event!(Level::Error, {}, "serve error {:?}", e))
|
.map_err(|e| event!(Level::Error, {}, "serve error {:?}", e))
|
||||||
.map(|_| {})
|
.map(|_| {})
|
||||||
|
.instrument(server_span.clone())
|
||||||
;
|
;
|
||||||
|
|
||||||
rt.spawn(serve);
|
rt.spawn(serve);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user