Skip to content

Commit 7b50216

Browse files
committed
add Instrument::in_current_span call to spawned future
Signed-off-by: Joel Dice <[email protected]>
1 parent 56a794f commit 7b50216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/trigger-http/src/wasip3.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
task::{Context, Poll},
1212
};
1313
use tokio::task;
14-
use tracing::{instrument, Level};
14+
use tracing::{instrument, Instrument, Level};
1515
use wasmtime_wasi_http::{
1616
body::HyperIncomingBody as Body,
1717
p3::{
@@ -81,6 +81,7 @@ impl HttpExecutor for Wasip3HttpExecutor<'_> {
8181
})
8282
.await?
8383
}
84+
.in_current_span()
8485
.inspect(|result| {
8586
if let Err(error) = result {
8687
tracing::error!("Component error handling request: {error:?}");

0 commit comments

Comments
 (0)