LCOV - differential code coverage report
Current view: top level - pageserver/src/tenant/timeline - span.rs (source / functions) Coverage Total Hit UBC CBC
Current: f6946e90941b557c917ac98cd5a7e9506d180f3e.info Lines: 91.7 % 12 11 1 11
Current Date: 2023-10-19 02:04:12 Functions: 100.0 % 2 2 2
Baseline: c8637f37369098875162f194f92736355783b050.info
Baseline Date: 2023-10-18 20:25:20

           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       18442 : pub(crate) fn debug_assert_current_span_has_tenant_and_timeline_id() {
      10           18442 :     static TIMELINE_ID_EXTRACTOR: once_cell::sync::Lazy<MultiNameExtractor<1>> =
      11           18442 :         once_cell::sync::Lazy::new(|| MultiNameExtractor::new("TimelineId", ["timeline_id"]));
      12           18442 : 
      13           18442 :     let fields: [&dyn Extractor; 2] = [
      14           18442 :         &*crate::tenant::span::TENANT_ID_EXTRACTOR,
      15           18442 :         &*TIMELINE_ID_EXTRACTOR,
      16           18442 :     ];
      17           18442 :     if let Err(missing) = check_fields_present!(fields) {
      18 UBC           0 :         panic!("missing extractors: {missing:?}")
      19 CBC       18442 :     }
      20           18442 : }
        

Generated by: LCOV version 2.1-beta