@@ -103,7 +103,7 @@ impl StaticSortedFileBuilder {
103
103
}
104
104
105
105
/// Computes a AQMF from the keys of all entries.
106
- #[ tracing:: instrument( skip_all) ]
106
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
107
107
fn compute_aqmf < E : Entry > ( & mut self , entries : & [ E ] ) {
108
108
let mut filter = qfilter:: Filter :: new ( entries. len ( ) as u64 , AQMF_FALSE_POSITIVE_RATE )
109
109
// This won't fail as we limit the number of entries per SST file
@@ -118,7 +118,7 @@ impl StaticSortedFileBuilder {
118
118
}
119
119
120
120
/// Computes compression dictionaries from keys and values of all entries
121
- #[ tracing:: instrument( skip_all) ]
121
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
122
122
fn compute_compression_dictionary < E : Entry > (
123
123
& mut self ,
124
124
entries : & [ E ] ,
@@ -204,7 +204,7 @@ impl StaticSortedFileBuilder {
204
204
}
205
205
206
206
/// Compute index, key and value blocks.
207
- #[ tracing:: instrument( skip_all) ]
207
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
208
208
fn compute_blocks < E : Entry > ( & mut self , entries : & [ E ] ) {
209
209
// TODO implement multi level index
210
210
// TODO place key and value block near to each other
@@ -355,19 +355,19 @@ impl StaticSortedFileBuilder {
355
355
}
356
356
357
357
/// Compresses an index or key block.
358
- #[ tracing:: instrument( skip_all) ]
358
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
359
359
fn compress_key_block ( & self , block : & [ u8 ] ) -> ( u32 , Vec < u8 > ) {
360
360
self . compress_block ( block, & self . key_compression_dictionary )
361
361
}
362
362
363
363
/// Compresses a value block.
364
- #[ tracing:: instrument( skip_all) ]
364
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
365
365
fn compress_value_block ( & self , block : & [ u8 ] ) -> ( u32 , Vec < u8 > ) {
366
366
self . compress_block ( block, & self . value_compression_dictionary )
367
367
}
368
368
369
369
/// Writes the SST file.
370
- #[ tracing:: instrument( skip_all) ]
370
+ #[ tracing:: instrument( level = "trace" , skip_all) ]
371
371
pub fn write ( & self , file : & Path ) -> io:: Result < File > {
372
372
let mut file = BufWriter :: new ( File :: create ( file) ?) ;
373
373
// magic number and version
0 commit comments