Remove redundant span attributes

There's no need to record attributes that are already present in all
callers.
This commit is contained in:
Lambda 2024-05-24 16:18:10 +00:00 committed by Charles Hall
parent f35cbfd89e
commit 88bb2ea600
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 5 additions and 8 deletions

View file

@ -308,7 +308,7 @@ impl Service {
}
#[allow(clippy::type_complexity, clippy::too_many_arguments)]
#[tracing::instrument(skip(self, create_event, value, pub_key_map))]
#[tracing::instrument(skip(self, origin, room_id, value, pub_key_map))]
fn handle_outlier_pdu<'a>(
&'a self,
origin: &'a ServerName,
@ -512,12 +512,9 @@ impl Service {
})
}
#[tracing::instrument(skip(
self,
incoming_pdu,
val,
create_event,
pub_key_map
#[tracing::instrument(skip_all, fields(
incoming_pdu = %incoming_pdu.event_id,
create_event = %create_event.event_id,
))]
pub(crate) async fn upgrade_outlier_to_timeline_pdu(
&self,