@@ -2928,7 +2928,7 @@ pub struct ChannelManager<
29282928
29292929 logger: L,
29302930
2931- node_span: tracing::Span ,
2931+ node_id: String ,
29322932}
29332933
29342934/// Chain-related parameters used to construct a new `ChannelManager`.
@@ -4047,12 +4047,12 @@ where
40474047 #[cfg(feature = "_test_utils")]
40484048 testing_dnssec_proof_offer_resolution_override: Mutex::new(new_hash_map()),
40494049
4050- node_span: tracing::span!(tracing::Level::INFO, "node" ),
4050+ node_id : "?".to_string( ),
40514051 }
40524052 }
40534053
40544054 pub fn set_node_id(&mut self, id: String) {
4055- self.node_span = tracing::span!(tracing::Level::INFO, "node", node_id = id) ;
4055+ self.node_id = id;
40564056 }
40574057
40584058 /// Gets the current [`UserConfig`] which controls some global behavior and includes the
@@ -4135,8 +4135,6 @@ where
41354135 /// [`Event::ChannelClosed::channel_id`]: events::Event::ChannelClosed::channel_id
41364136 #[rustfmt::skip]
41374137 pub fn create_channel(&self, their_network_key: PublicKey, channel_value_satoshis: u64, push_msat: u64, user_channel_id: u128, temporary_channel_id: Option<ChannelId>, override_config: Option<UserConfig>) -> Result<ChannelId, APIError> {
4138- tracing::info!("create_channel called");
4139-
41404138 if channel_value_satoshis < 1000 {
41414139 return Err(APIError::APIMisuseError { err: format!("Channel value must be at least 1000 satoshis. It was {}", channel_value_satoshis) });
41424140 }
@@ -12825,6 +12823,7 @@ macro_rules! create_refund_builder { ($self: ident, $builder: ty) => {
1282512823 }
1282612824} }
1282712825
12826+ #[lightning_macros::auto_span_methods]
1282812827impl<
1282912828 M: Deref,
1283012829 T: Deref,
@@ -13680,6 +13679,7 @@ where
1368013679 }
1368113680}
1368213681
13682+ #[lightning_macros::auto_span_methods]
1368313683impl<
1368413684 M: Deref,
1368513685 T: Deref,
@@ -14021,6 +14021,7 @@ where
1402114021 }
1402214022}
1402314023
14024+ #[lightning_macros::auto_span_methods]
1402414025impl<
1402514026 M: Deref,
1402614027 T: Deref,
@@ -14056,6 +14057,7 @@ where
1405614057 }
1405714058}
1405814059
14060+ #[lightning_macros::auto_span_methods]
1405914061impl<
1406014062 M: Deref,
1406114063 T: Deref,
@@ -14117,6 +14119,7 @@ where
1411714119 }
1411814120}
1411914121
14122+ #[lightning_macros::auto_span_methods]
1412014123impl<
1412114124 M: Deref,
1412214125 T: Deref,
@@ -14617,6 +14620,7 @@ where
1461714620 }
1461814621}
1461914622
14623+ #[lightning_macros::auto_span_methods]
1462014624impl<
1462114625 M: Deref,
1462214626 T: Deref,
@@ -15192,6 +15196,7 @@ where
1519215196 }
1519315197}
1519415198
15199+ #[lightning_macros::auto_span_methods]
1519515200impl<
1519615201 M: Deref,
1519715202 T: Deref,
@@ -15411,6 +15416,7 @@ where
1541115416 }
1541215417}
1541315418
15419+ #[lightning_macros::auto_span_methods]
1541415420impl<
1541515421 M: Deref,
1541615422 T: Deref,
@@ -15681,6 +15687,7 @@ where
1568115687 }
1568215688}
1568315689
15690+ #[lightning_macros::auto_span_methods]
1568415691impl<
1568515692 M: Deref,
1568615693 T: Deref,
@@ -16196,6 +16203,7 @@ impl_writeable_tlv_based!(PendingInboundPayment, {
1619616203 (8, min_value_msat, required),
1619716204});
1619816205
16206+ #[lightning_macros::auto_span_methods]
1619916207impl<
1620016208 M: Deref,
1620116209 T: Deref,
@@ -18133,7 +18141,7 @@ where
1813318141
1813418142 #[cfg(feature = "_test_utils")]
1813518143 testing_dnssec_proof_offer_resolution_override: Mutex::new(new_hash_map()),
18136- node_span: tracing::span!(tracing::Level::INFO, "node" ),
18144+ node_id: "?".to_string( ),
1813718145 };
1813818146
1813918147 let mut processed_claims: HashSet<Vec<MPPClaimHTLCSource>> = new_hash_set();
0 commit comments