mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
switch all tracing imports to observability::prelude
This commit is contained in:
parent
bc5f31b3a2
commit
5fca67054e
63 changed files with 824 additions and 735 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue