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
parent 1556234d9a
commit 373fa7c2ac
2 changed files with 10 additions and 2 deletions

View File

@@ -443,7 +443,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,
@@ -536,7 +536,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,