Remove span that is called too many times

This commit is contained in:
Kerollmops 2024-12-19 11:33:58 +01:00
parent 0784e8dddc
commit 02f468afb7
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -153,10 +153,6 @@ impl<'a, 'b, 'extractor> Extractor<'extractor> for DocumentsExtractor<'a, 'b> {
match document_extractor_data.documents_compressor.as_mut() {
Some(compressor) => {
let span =
tracing::trace_span!(target: "indexing::documents", "compress");
let _entered = span.enter();
let doc = CompressedObkvU16::with_compressor(content, compressor)?;
self.document_sender
.write_compressed(docid, external_docid, &doc)
@ -192,10 +188,6 @@ impl<'a, 'b, 'extractor> Extractor<'extractor> for DocumentsExtractor<'a, 'b> {
document_extractor_data.docids_delta.insert_add_u32(docid);
match document_extractor_data.documents_compressor.as_mut() {
Some(compressor) => {
let span =
tracing::trace_span!(target: "indexing::documents", "compress");
let _entered = span.enter();
let doc = CompressedObkvU16::with_compressor(content, compressor)?;
self.document_sender
.write_compressed(docid, external_docid, &doc)