File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -732,12 +732,14 @@ impl OutboundWasiHttpHandler for HttpRuntimeData {
732
732
}
733
733
}
734
734
735
+ let client_tls_opts = ( * data. as_ref ( ) ) . client_tls_opts . clone ( ) ;
736
+
735
737
// TODO: This is a temporary workaround to make sure that outbound task is instrumented.
736
738
// Once Wasmtime gives us the ability to do the spawn ourselves we can just call .instrument
737
739
// and won't have to do this workaround.
738
740
let response_handle = async move {
739
741
let res =
740
- wasmtime_wasi_http :: types :: default_send_request_handler ( request, config) . await ;
742
+ default_send_request_handler ( request, config, client_tls_opts ) . await ;
741
743
if let Ok ( res) = & res {
742
744
tracing:: Span :: current ( )
743
745
. record ( "http.response.status_code" , res. resp . status ( ) . as_u16 ( ) ) ;
You can’t perform that action at this time.
0 commit comments