Skip to content

Commit

Permalink
chore(timeline): fix instrumentation of update_event_send_state
Browse files Browse the repository at this point in the history
This would not report the `txn_id` field because of the `skip_all`. It's
actually interesting to also get the error, so I'm only skipping self
from now on.
  • Loading branch information
bnjbvr committed Oct 16, 2024
1 parent 8df5d65 commit 30f3a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/timeline/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ impl<P: RoomDataProvider> TimelineController<P> {
///
/// If the corresponding local timeline item is missing, a warning is
/// raised.
#[instrument(skip_all, fields(txn_id))]
#[instrument(skip(self))]
pub(super) async fn update_event_send_state(
&self,
txn_id: &TransactionId,
Expand Down

0 comments on commit 30f3a3c

Please sign in to comment.