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 ff2e75d commit 6c7b816
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 6c7b816

Please sign in to comment.