From 6e84c765b6d6044b25e40d31569ca435f206aebf Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Wed, 13 Mar 2024 13:05:55 +0200 Subject: [PATCH] refactor: downgrade `vm::get_key` span to the trace level While this span is not very frequent, it does not provide particularly much information to trace it, so lets redelegate it to a more verbose level. --- runtime/near-vm-runner/src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/near-vm-runner/src/cache.rs b/runtime/near-vm-runner/src/cache.rs index 8b70c95d9c2..3805b36f278 100644 --- a/runtime/near-vm-runner/src/cache.rs +++ b/runtime/near-vm-runner/src/cache.rs @@ -44,8 +44,8 @@ fn vm_hash(vm_kind: VMKind) -> u64 { } } +#[tracing::instrument(level = "trace", target = "vm", "get_key", skip_all)] pub fn get_contract_cache_key(code: &ContractCode, config: &Config) -> CryptoHash { - let _span = tracing::debug_span!(target: "vm", "get_key").entered(); let key = ContractCacheKey::Version4 { code_hash: *code.hash(), vm_config_non_crypto_hash: config.non_crypto_hash(),