We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Instrument::in_current_span
1 parent 56a794f commit 7b50216Copy full SHA for 7b50216
crates/trigger-http/src/wasip3.rs
@@ -11,7 +11,7 @@ use std::{
11
task::{Context, Poll},
12
};
13
use tokio::task;
14
-use tracing::{instrument, Level};
+use tracing::{instrument, Instrument, Level};
15
use wasmtime_wasi_http::{
16
body::HyperIncomingBody as Body,
17
p3::{
@@ -81,6 +81,7 @@ impl HttpExecutor for Wasip3HttpExecutor<'_> {
81
})
82
.await?
83
}
84
+ .in_current_span()
85
.inspect(|result| {
86
if let Err(error) = result {
87
tracing::error!("Component error handling request: {error:?}");
0 commit comments