Skip to content

Commit 4e2655a

Browse files
kaylendogandybalaam
authored andcommitted
feat(sdk): Use clearer fields for Span in SendRawStateEvent
1 parent 41fcebb commit 4e2655a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/matrix-sdk/src/room/futures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl<'a> IntoFuture for SendRawStateEvent<'a> {
414414
if Self::should_encrypt(room, event_type) {
415415
use tracing::debug;
416416

417-
Span::current().record("is_room_encrypted", true);
417+
Span::current().record("should_encrypt", true);
418418
debug!(
419419
room_id = ?room.room_id(),
420420
"Sending encrypted event because the room is encrypted.",
@@ -433,7 +433,7 @@ impl<'a> IntoFuture for SendRawStateEvent<'a> {
433433
state_key = format!("{event_type}:{state_key}");
434434
event_type = "m.room.encrypted";
435435
} else {
436-
Span::current().record("is_room_encrypted", false);
436+
Span::current().record("should_encrypt", false);
437437
}
438438

439439
let request = send_state_event::v3::Request::new_raw(

0 commit comments

Comments
 (0)