Skip to content

Commit 97bbc2a

Browse files
feat: debug logging for cache metrics (#98)
*Issue #, if available:* N/A *Description of changes:* - Add debug logging for cache metrics (hits, misses, hit rate, miss rate). The logic is wrapped in `#[cfg(debug_assertions)]` which causes it to be conditionally compiled only when the project is built in debug mode to avoid performance overhead in release builds - Example log statement: `METRICS: Cache HIT for secret 'secret2'. Total hits: 2. Total misses: 1. Hit rate: 50.00%. Miss rate: 50.00%.` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent bc50c3e commit 97bbc2a

File tree

3 files changed

+259
-170
lines changed

3 files changed

+259
-170
lines changed

0 commit comments

Comments
 (0)