@@ -963,7 +963,6 @@ impl<'a> wit_bindgen_core::InterfaceGenerator<'a> for InterfaceGenerator<'a> {
963
963
let bytes = self . gen . bytes_path ( ) . to_string ( ) ;
964
964
let tokio = self . gen . tokio_path ( ) . to_string ( ) ;
965
965
let tokio_util = self . gen . tokio_util_path ( ) . to_string ( ) ;
966
- let tracing = self . gen . tracing_path ( ) . to_string ( ) ;
967
966
let wrpc_transport = self . gen . wrpc_transport_path ( ) . to_string ( ) ;
968
967
969
968
uwriteln ! (
@@ -1196,9 +1195,7 @@ mod {mod_name} {{
1196
1195
type Item = super::{name};
1197
1196
type Error = ::std::io::Error;
1198
1197
1199
- fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{
1200
- let span = {tracing}::trace_span!("decode", ty = "{ty_name}");
1201
- let _enter = span.enter();"#
1198
+ fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{"#
1202
1199
) ;
1203
1200
for Field { name, .. } in fields {
1204
1201
let name = to_rust_ident ( name) ;
@@ -1234,9 +1231,7 @@ mod {mod_name} {{
1234
1231
type Error = ::std::io::Error;
1235
1232
1236
1233
#[allow(unused_mut)]
1237
- fn encode(&mut self, item: {name}, mut dst: &mut {bytes}::BytesMut) -> ::std::io::Result<()> {{
1238
- let span = {tracing}::trace_span!("encode", ty = "{ty_name}");
1239
- let _enter = span.enter();"#
1234
+ fn encode(&mut self, item: {name}, mut dst: &mut {bytes}::BytesMut) -> ::std::io::Result<()> {{"#
1240
1235
) ;
1241
1236
if !fields. is_empty ( ) {
1242
1237
self . push_str ( "let " ) ;
@@ -1325,7 +1320,6 @@ pub struct {}(());",
1325
1320
let bitflags = self . gen . bitflags_path ( ) . to_string ( ) ;
1326
1321
let bytes = self . gen . bytes_path ( ) . to_string ( ) ;
1327
1322
let tokio_util = self . gen . tokio_util_path ( ) . to_string ( ) ;
1328
- let tracing = self . gen . tracing_path ( ) . to_string ( ) ;
1329
1323
let wasm_tokio = self . gen . wasm_tokio_path ( ) . to_string ( ) ;
1330
1324
let wrpc_transport = self . gen . wrpc_transport_path ( ) . to_string ( ) ;
1331
1325
@@ -1391,8 +1385,6 @@ mod {mod_name} {{
1391
1385
type Error = ::std::io::Error;
1392
1386
1393
1387
fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{
1394
- let span = {tracing}::trace_span!("decode", ty = "{ty_name}");
1395
- let _enter = span.enter();
1396
1388
let n = src.len();
1397
1389
if n < {n} {{
1398
1390
src.reserve({n} - n);
@@ -1413,8 +1405,6 @@ mod {mod_name} {{
1413
1405
type Error = ::std::io::Error;
1414
1406
1415
1407
fn encode(&mut self, item: super::{name}, dst: &mut {bytes}::BytesMut) -> Result<(), Self::Error> {{
1416
- let span = {tracing}::trace_span!("encode", ty = "{ty_name}");
1417
- let _enter = span.enter();
1418
1408
dst.extend_from_slice(&item.bits().to_le_bytes());
1419
1409
Ok(())
1420
1410
}}
@@ -1516,7 +1506,6 @@ mod {mod_name} {{
1516
1506
1517
1507
let bytes = self . gen . bytes_path ( ) . to_string ( ) ;
1518
1508
let tokio_util = self . gen . tokio_util_path ( ) . to_string ( ) ;
1519
- let tracing = self . gen . tracing_path ( ) . to_string ( ) ;
1520
1509
let wasm_tokio = self . gen . wasm_tokio_path ( ) . to_string ( ) ;
1521
1510
let wrpc_transport = self . gen . wrpc_transport_path ( ) . to_string ( ) ;
1522
1511
@@ -1556,8 +1545,6 @@ mod {mod_name} {{
1556
1545
type Error = ::std::io::Error;
1557
1546
1558
1547
fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{
1559
- let span = {tracing}::trace_span!("decode", ty = "{ty_name}");
1560
- let _enter = span.enter();
1561
1548
let Some(disc) = {wasm_tokio}::Leb128DecoderU32.decode(src)? else {{
1562
1549
return Ok(None)
1563
1550
}};
@@ -1579,8 +1566,6 @@ mod {mod_name} {{
1579
1566
type Error = ::std::io::Error;
1580
1567
1581
1568
fn encode(&mut self, item: super::{name}, dst: &mut {bytes}::BytesMut) -> Result<(), Self::Error> {{
1582
- let span = {tracing}::trace_span!("encode", ty = "{ty_name}");
1583
- let _enter = span.enter();
1584
1569
{wasm_tokio}::Leb128Encoder.encode(match item {{"#
1585
1570
) ;
1586
1571
for ( i, case) in cases. iter ( ) . enumerate ( ) {
@@ -1673,8 +1658,6 @@ mod {mod_name} {{
1673
1658
type Error = ::std::io::Error;
1674
1659
1675
1660
fn encode(&mut self, item: {ty}, dst: &mut {bytes}::BytesMut) -> Result<(), Self::Error> {{
1676
- let span = {tracing}::trace_span!("encode", ty = "{ty_name}");
1677
- let _enter = span.enter();
1678
1661
match item {{"#
1679
1662
) ;
1680
1663
for (
@@ -1803,8 +1786,6 @@ mod {mod_name} {{
1803
1786
type Error = ::std::io::Error;
1804
1787
1805
1788
fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{
1806
- let span = {tracing}::trace_span!("decode", ty = "{ty_name}");
1807
- let _enter = span.enter();
1808
1789
let state = if let Some(ref mut state) = self.0 {{
1809
1790
state
1810
1791
}} else {{
@@ -1999,7 +1980,6 @@ mod {mod_name} {{
1999
1980
2000
1981
let bytes = self . gen . bytes_path ( ) . to_string ( ) ;
2001
1982
let tokio_util = self . gen . tokio_util_path ( ) . to_string ( ) ;
2002
- let tracing = self . gen . tracing_path ( ) . to_string ( ) ;
2003
1983
let wasm_tokio = self . gen . wasm_tokio_path ( ) . to_string ( ) ;
2004
1984
let wrpc_transport = self . gen . wrpc_transport_path ( ) . to_string ( ) ;
2005
1985
@@ -2038,8 +2018,6 @@ mod {mod_name} {{
2038
2018
type Error = ::std::io::Error;
2039
2019
2040
2020
fn decode(&mut self, src: &mut {bytes}::BytesMut) -> Result<Option<Self::Item>, Self::Error> {{
2041
- let span = {tracing}::trace_span!("decode", ty = "{ty_name}");
2042
- let _enter = span.enter();
2043
2021
let Some(disc) = {wasm_tokio}::Leb128DecoderU32.decode(src)? else {{
2044
2022
return Ok(None)
2045
2023
}};
@@ -2061,8 +2039,6 @@ mod {mod_name} {{
2061
2039
type Error = ::std::io::Error;
2062
2040
2063
2041
fn encode(&mut self, item: super::{name}, dst: &mut {bytes}::BytesMut) -> Result<(), Self::Error> {{
2064
- let span = {tracing}::trace_span!("encode", ty = "{ty_name}");
2065
- let _enter = span.enter();
2066
2042
{wasm_tokio}::Leb128Encoder.encode(match item {{"#
2067
2043
) ;
2068
2044
for ( i, case) in enum_. cases . iter ( ) . enumerate ( ) {
0 commit comments