Add tracing info

This commit is contained in:
Mikhail 2024-05-24 11:03:04 +02:00
parent 85c8d03f54
commit 8dff974df8
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ impl<'a> XmppConnection<'a> {
<body></body> <body></body>
</message> </message>
*/ */
#[tracing::instrument(skip(self), name = "XmppConnection::retrieve_message_history")]
async fn retrieve_message_history(&self, room_name: &Name) -> Result<(Vec<XmppHistoryMessage>)> { async fn retrieve_message_history(&self, room_name: &Name) -> Result<(Vec<XmppHistoryMessage>)> {
let room_id = RoomId::try_from(room_name.0.clone())?; let room_id = RoomId::try_from(room_name.0.clone())?;
let history_messages = self.user_handle.get_room_message_history(room_id).await?; let history_messages = self.user_handle.get_room_message_history(room_id).await?;