- Install and configure the instrumentation
- Customize key sanitization
Installation
bentocache >= 1.0.0
Usage
Create an instance ofBentoCacheInstrumentation and call enable().
instrumentation.ts
instrumentation.ts
get, set, getOrSet, delete, has, clear, etc.) create spans automatically.
Configuration
Bentocache-specific behavior
Internal operation suppression
WhensuppressInternalOperations: true, internal spans from the underlying store (Redis commands, L2 calls) are suppressed. This keeps traces clean by only showing the high-level cache operations.
Key sanitization
The Monocle agent applies a default sanitizer that replaces UUIDs, numeric IDs, and hex hashes with*. You can provide your own: