switch all tracing imports to observability::prelude

This commit is contained in:
Olivia Lee 2024-12-14 00:49:56 -08:00
parent bc5f31b3a2
commit 5fca67054e
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
63 changed files with 824 additions and 735 deletions

View file

@ -2,6 +2,7 @@ use ruma::RoomId;
use crate::{
database::KeyValueDatabase,
observability::prelude::*,
service::{
self,
rooms::{short::ShortRoomId, timeline::PduId},
@ -21,7 +22,7 @@ fn tokenize(body: &str) -> impl Iterator<Item = String> + '_ {
}
impl service::rooms::search::Data for KeyValueDatabase {
#[tracing::instrument(skip(self))]
#[t::instrument(skip(self))]
fn index_pdu(
&self,
shortroomid: ShortRoomId,
@ -40,7 +41,7 @@ impl service::rooms::search::Data for KeyValueDatabase {
self.tokenids.insert_batch(&mut batch)
}
#[tracing::instrument(skip(self))]
#[t::instrument(skip(self))]
fn deindex_pdu(
&self,
shortroomid: ShortRoomId,
@ -63,7 +64,7 @@ impl service::rooms::search::Data for KeyValueDatabase {
Ok(())
}
#[tracing::instrument(skip(self))]
#[t::instrument(skip(self))]
#[allow(clippy::type_complexity)]
fn search_pdus<'a>(
&'a self,