origin/problame/page-cache-forward-progress/3: trace spans and events only for tests

This commit is contained in:
Christian Schwarz
2023-10-09 20:21:22 +00:00
committed by Christian Schwarz
parent fd97c98dd9
commit 71bf9cf8ae
2 changed files with 10 additions and 2 deletions

View File

@@ -434,7 +434,7 @@ impl PageCache {
///
/// Store an image of the given page in the cache.
///
#[instrument(skip_all, level = "trace", fields(%key, %lsn))]
#[cfg_attr(test, instrument(skip_all, level = "trace", fields(%key, %lsn)))]
pub async fn memorize_materialized_page(
&'static self,
tenant_id: TenantId,
@@ -527,7 +527,7 @@ impl PageCache {
// Section 1.2: Public interface functions for working with immutable file pages.
#[instrument(skip_all, level = "trace", fields(?file_id, ?blkno))]
#[cfg_attr(test, instrument(skip_all, level = "trace", fields(?file_id, ?blkno)))]
pub async fn read_immutable_buf(
&'static self,
file_id: FileId,