LCOV - differential code coverage report
Current view: top level - pageserver/src/tenant/timeline - span.rs (source / functions) Coverage Total Hit UBC CBC
Current: cd44433dd675caa99df17a61b18949c8387e2242.info Lines: 91.7 % 12 11 1 11
Current Date: 2024-01-09 02:06:09 Functions: 100.0 % 2 2 2
Baseline: 66c52a629a0f4a503e193045e0df4c77139e344b.info
Baseline Date: 2024-01-08 15:34:46

           TLA  Line data    Source code
       1                 : #[cfg(debug_assertions)]
       2                 : use utils::tracing_span_assert::{check_fields_present, Extractor, MultiNameExtractor};
       3                 : 
       4                 : #[cfg(not(debug_assertions))]
       5                 : pub(crate) fn debug_assert_current_span_has_tenant_and_timeline_id() {}
       6                 : 
       7                 : #[cfg(debug_assertions)]
       8                 : #[track_caller]
       9 CBC       31058 : pub(crate) fn debug_assert_current_span_has_tenant_and_timeline_id() {
      10           31058 :     static TIMELINE_ID_EXTRACTOR: once_cell::sync::Lazy<MultiNameExtractor<1>> =
      11           31058 :         once_cell::sync::Lazy::new(|| MultiNameExtractor::new("TimelineId", ["timeline_id"]));
      12           31058 : 
      13           31058 :     let fields: [&dyn Extractor; 2] = [
      14           31058 :         &*crate::tenant::span::TENANT_ID_EXTRACTOR,
      15           31058 :         &*TIMELINE_ID_EXTRACTOR,
      16           31058 :     ];
      17           31058 :     if let Err(missing) = check_fields_present!(fields) {
      18 UBC           0 :         panic!("missing extractors: {missing:?}")
      19 CBC       31058 :     }
      20           31058 : }
        

Generated by: LCOV version 2.1-beta