File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ use common::{
52
52
value:: Size ,
53
53
} ;
54
54
use errors:: ErrorMetadata ;
55
+ use fastrace:: local:: LocalSpan ;
55
56
use futures:: {
56
57
stream,
57
58
StreamExt as _,
@@ -586,6 +587,7 @@ impl DatabaseIndexSnapshot {
586
587
) > {
587
588
let mut results = vec ! [ ] ;
588
589
let mut cache_miss_results = vec ! [ ] ;
590
+ let mut traced = false ;
589
591
for cache_result in cache_results {
590
592
match cache_result {
591
593
DatabaseIndexSnapshotCacheResult :: Document ( index_key, ts, document) => {
@@ -595,6 +597,12 @@ impl DatabaseIndexSnapshot {
595
597
} ,
596
598
DatabaseIndexSnapshotCacheResult :: CacheMiss ( interval) => {
597
599
log_transaction_cache_query ( false ) ;
600
+ if !traced {
601
+ LocalSpan :: add_property ( || {
602
+ ( "index" , range_request. printable_index_name . to_string ( ) )
603
+ } ) ;
604
+ traced = true ;
605
+ }
598
606
// Query persistence.
599
607
let mut stream = persistence. index_scan (
600
608
index_id,
You can’t perform that action at this time.
0 commit comments