Skip to content

Commit 5b3f530

Browse files
committed
feat(sqlite): Instrument SqliteEventCacheStore::open_with_config.
1 parent 6057cfc commit 5b3f530

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/matrix-sdk-sqlite/src/event_cache_store.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ impl SqliteEventCacheStore {
127127
}
128128

129129
/// Open the SQLite-based event cache store with the config open config.
130+
#[instrument(skip(config), fields(path = ?config.path))]
130131
pub async fn open_with_config(config: SqliteStoreConfig) -> Result<Self, OpenStoreError> {
132+
debug!(?config);
133+
134+
let _timer = timer!("Opening the database and applying runtime configuration");
135+
131136
let SqliteStoreConfig { path, passphrase, pool_config, runtime_config } = config;
132137

133138
fs::create_dir_all(&path).await.map_err(OpenStoreError::CreateDir)?;

0 commit comments

Comments
 (0)