Replace logging timer by spans

This commit is contained in:
Louis Dureuil 2024-03-05 11:05:20 +01:00
parent f4a6261dea
commit 25f64ce7df
No known key found for this signature in database
5 changed files with 15 additions and 30 deletions

View file

@ -9,7 +9,7 @@ use crate::search::new::query_term::{Lazy, Phrase, QueryTerm};
use crate::{Result, SearchContext, MAX_WORD_LENGTH};
/// Convert the tokenised search query into a list of located query terms.
#[logging_timer::time]
#[tracing::instrument(level = "trace", skip_all, target = "search::query")]
pub fn located_query_terms_from_tokens(
ctx: &mut SearchContext,
query: NormalizedTokenIter,