Skip to content

Commit

Permalink
refactor: downgrade vm::get_key span to the trace level (#10779)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nagisa authored Mar 13, 2024
1 parent e768df2 commit 7d9aa40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/near-vm-runner/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7d9aa40

Please sign in to comment.